ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <flo...@mindspring.com>
Subject Re: calling ant with parameters
Date Thu, 26 Jun 2008 17:03:11 GMT
You can certainly use proprties and the -D command line option to define 
those properties.

For example:

ant -Ddebug="true" compile

Then look for the ${debug} in your Ant script...

On Thu, 26 Jun 2008, Guy Catz wrote:

> I would like to set a parameter to a ant. Something like this from command-line -
>
> ANT compile debug
> ANT compile release
>
> or
>
> ANT testProducts full
> ANT testProducts debugOnly
>
> the target Compile will "catch" the first parameter and will act as needed.
>
> how can I make this to work? how can I call an ANT target with parameters?
>
> Thanks,
>    Guy.
>

Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros          http://sourceforge.net/projects/keros

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


Mime
View raw message