ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Dibi" <George.D...@intervoice.com>
Subject RE: Ant file command-line arguments WAS nested "fileset" error (why?)
Date Thu, 28 Oct 2004 20:06:44 GMT
Let me try the other version you just gave me.

-----Original Message-----
From: Dominique Devienne [mailto:DDevienne@lgc.com] 
Sent: Thursday, October 28, 2004 2:44 PM
To: Ant Users List
Subject: RE: Ant file command-line arguments WAS nested "fileset" error
(why?)

> 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




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


Mime
View raw message