ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mihai Costache" <>
Subject Question about ant 1.5
Date Thu, 25 Jul 2002 08:11:00 GMT
I have a questionregarding using ANT 1.5: I'd like to know if it is possible to run a ant
target with some parameters from the console: for example, I have in the build.xml file the
following tag:

  <target name="generate" depends="fc">
  <java classname="de.otto.noa.generator.CreateClass" fork="yes">
   <classpath refid="ejbc.path"/>
   <arg value="${build}"/>
and I would like to know if it is possible to run this task as follow:
ant generate MyClassName MyPackageName where:

MyClassName is the name of the class which I want to generate 
MyPackageName is the name of the package where I want to write this class.

Thank you

Mihai Costache

Otto Software Development Romania
B-dul Dimitrie Pompei 9-9A
Bucharest 2

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message