Java Mailing List Archive

Apache Ant Archive

» Ant Users List
» Ant Developers List
Call a target with parameter?

Call a target with parameter?

2007-08-08       - By hezjing


My build.xml contains few targets to run different main classes,

 <target name="run-a">
   <java classname="MyClass" />
 <target name="run-b">
   <java classname="YourClass" />
 <target name="run-c">
   <java classname="HisClass" />

Can I simplify this by defining one target with <java> and the common
classpath and system properties configuration, and then call this
target with different class names?



To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 - Jax Systems, LLC, U.S.A.