ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Bucanek <>
Subject Multi-target builds
Date Fri, 15 Dec 2000 19:31:19 GMT

I just started working with Ant this week, and have run across a 
potential annoyance.

It appears that Ant only builds one target at a time.  So when 
building multiple targets, Ant builds each target successively.  The 
result being that any common targets are executed multiple times.

I've found a hack around this:

     <target name="init" unless="init.complete">
         <echo message="init executing..."/>
         <property name="init.complete" value="true"/>

So, is there some other way of either (a) keeping tasks from running 
more than once or (b) building the entire tree of targets to be built 
in one pass?


James Bucanek

View raw message