You can sorta do that if you use -D's to define property values.
For instance:
ant -Dserver=localhost deploy
Then you can use:
${server}
in your ant script...
Or you can use a property file as well...
wolverine my wrote:
Hi!
Is it possible to pass parameters/arguments to a Ant target?
For an example,
ant deploy localhost
where we specify the deployment server as a parameter when invoking
the "deploy" target. The "localhost" could be another property defined
in the build file,
<property name="localhost" value="100.10.0.48"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]