ant-user mailing list archives

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

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..."/>
         <tstamp/>
         <property name="init.complete" value="true"/>
     </target>

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?

Thanks,

__________________________________
James Bucanek
<mailto:privatereply@gloaming.com>


Mime
View raw message