ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re[4]: Best practice for numerous javac calls?
Date Mon, 02 Dec 2002 22:35:27 GMT
Hello Dominique,

Thanks, that looks like it will work.  Where do I find <subant>?  I've
heard of the <foreach2> task.  Is that the same or different?

BTW, thanks so much for the <jaxb> task you wrote. :-)  Very nice. Are you
making any updates or anything to it?  Just wondering in case JAXB
changes and requires the task to be modified to fit it or something.

Jake

Monday, December 02, 2002, 4:13:23 PM, you wrote:

DD> Have you tried a recent build from CVS HEAD? Stefan has probably fixed
DD> that!?!? As a work around for Ant 1.5.1, I use a property to avoid
DD> re-taskdef'ing in the sub-build:

DD> --- master.xml ---
DD>   <target name="init" depends="-buildmagic">
DD>     ...
DD>   </target>

DD>   <target name="-buildmagic" unless="-buildmagic-defined">
DD>     ...
DD>     <property name="-buildmagic-defined" value="true" />
DD>   </target>

DD>   <target name="clean" depends="buildfiles, buildpath"
DD>           description="Deletes all the modules' compiled classes">
DD>     <subant buildpathref="buildpath">
DD>       <property name="-buildmagic-defined" value="true" />
DD>     </subant>
DD>   </target>

DD> --- subbuild.xml ---
DD>   <target name="init" depends="-buildmagic">
DD>     ...
DD>   </target>

DD>   <target name="-buildmagic" unless="-buildmagic-defined">
DD>     ...
DD>     <property name="-buildmagic-defined" value="true" />
DD>   </target>


DD> <subant> is nothing more than <foreach> and <ant> joined at the hip.
DD> This technique got me rid of the re-reference warnings. --DD

DD> -----Original Message-----
DD> From: Jacob Kjome [mailto:hoju@visi.com] 
DD> Sent: Monday, December 02, 2002 4:06 PM
DD> To: Ant Users List
DD> Subject: Re[2]: Best practice for numerous javac calls?

DD> [DD] <snip/>

DD> Any solutions to that?

DD> Jake

DD> --
DD> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
DD> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>



-- 
Best regards,
 Jacob                            mailto:hoju@visi.com


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


Mime
View raw message