ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Cohen" <>
Subject RE: re-reading build file from within ant
Date Fri, 20 Jun 2003 16:24:03 GMT
Okay, your needs are more complicated than I thought, then.

-----Original Message-----
From: Phillip Lord [] 
Sent: Friday, June 20, 2003 10:45 AM
To: Ant Users List
Subject: Re: re-reading build file from within ant

>>>>> "Steve" == Steve Cohen <> writes:

  Steve>     <target name="autobuild">
  Steve> 	...
  Steve>     </target>

  Steve>     <target name="auto" depends="">
  Steve>         <echo message="ant.file=${ant.file}"/> <ant
  Steve>         antfile="${ant.file}" target="autobuild"
  Steve> inheritrefs="false" inheritall="false"/>
  Steve>     </target>

  Steve> Neither of these targets, auto or autobuild, is the default
  Steve> target, although, conceivably, either could be.

  Steve> Are you perhaps missing the "target" attribute of the ant
  Steve> task?

Yes, but you know which targets you are going to be running in advance.
I would need this decision to be made at runtime. 

Say I have....




and I call "ant -find build.xml blah" I can not delegate that
functionality to build-generated.xml. The best that I can do is either,
put a dummy target into build.xml called "blah" which delegates its real
functionality to build.xml. Or in build.xml I can do 

target delegate
        ant target="${}"

and call

ant delegate


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message