Chris Weiss wrote:
Is anyone calling Visual Build from a NANT script? We're slowly
transitioning the entire build to NANT tasks, but for now, we need to
still be able to run what's not been migrated. The trouble is, my task
loads VBuild with the project, but does not seem to be interpreting
the command line arguments (IE - it loads the project, but doesn't
start the build). Any ideas what's going wrong? The arguments work
fine if I manually run the command line.
Our task looks like:
<target name="build" description="Build the source (run VBuild)">
<exec program="visbuild.exe" basedir="C:\Program
Files\VisBuild\">
<arg value="/a /b" />
<arg>
<path>
<pathelement
file="E:\projects\AutomatedBuildProcess\dailybuild.bld" />
</path>
</arg>
</exec>
</target>
The <arg> element, when used with the value= attribute, takes a single
command line argument. Thus your choices are
<arg value="/a" />
<arg value="/b" />
or
<arg line="/a /b" />
In general, I lean towards the former whenever dealing with attributes
that take values, since that solves the quoting problem, but I'd
consider using the latter in this case.
Gary
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users