ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hezjing <hezj...@gmail.com>
Subject Call a target with parameter?
Date Wed, 08 Aug 2007 10:08:14 GMT
Hi!

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

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


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?


-- 

Hez

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


Mime
View raw message