ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <DDevie...@lgc.com>
Subject RE: Ant file command-line arguments WAS nested "fileset" error (why?)
Date Thu, 28 Oct 2004 19:43:46 GMT
> From: George Dibi [mailto:George.Dibi@intervoice.com]
> 
> Where the  ${BUILDVIEW} ${IVC_VER} ${IVC_BLD} would past in from
command
> line.
> 
>  <target name="ivcommon_isoft">
> 	  <echo>
>              Building ivcommon...
> 	     ${perl.bin.dir} ${ivc.perl.target} ${drive} ${BUILDVIEW}
> 	  </echo>
> 	  <exec executable="${ant.common.dir}/createProcess.exe">
>                <arg line="${basedir} ${perl.bin.dir}
${ivc.perl.target}
> ${drive} ${BUILDVIEW} ${IVC_VER} ${IVC_BLD}"/>
>           </exec>
>   </target>

You can call your build with the properties on the command line:

ant -DBUILDVIEW=foo -DIVC_VER=bar -DIVC_BLD=baz ivcommon_isoft

If it's too cumbersome, you could also do:

ant ivcommon_isoft -- foo bar baz

if you had Ant code like below:

  <exec executable="${ant.common.dir}/createProcess.exe">
    <arg line="${basedir} ${perl.bin.dir} ${ivc.perl.target} ${drive}"
/>
    <arg line="${$*}" />
  </exec>

*and* my patch below ;-) You can vote for the patch too ;-))) --DD

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=30651 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message