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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]