ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <>
Subject Re: article: combining make and ant
Date Thu, 21 Mar 2002 14:20:33 GMT
stephan beal wrote:

> Another example of this is the fact that ant will (annoyingly) run a target 
> multiple times if it's in multiple depends="..." lines. Make does not do this 
> - it recognizes that a given dependency was already run and doesn't run it 
> again. My 'init' target gets run multiple times (hosing my output log, since 
> <record action="start"/> gets called multiple times) unless i do something 
> silly like this:
> <target name="init" unless="init.alreadydone">        
> 	<property name='init.alreadydone' value='true'/>
> ...
> </target>

You are either use (overusing) antcall or passing in many targets on the command 
line. Ant will "run" a target only once unless this is true.


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

View raw message