ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: How to?: add target dependencies
Date Fri, 11 Feb 2005 18:01:10 GMT

--- Mark Lundquist <mlundquist2@comcast.net> wrote:
>    	<target name="modules:build-all">
>      		<foreach
>          			list="${modules:modules}"
>          			target="modules.build-module"
> 	       		param="name"
>        		   />
>    	</target>

I don't know what version of ant-contrib you are
using, but later versions include the for task which
is a hybrid of foreach and macrodef, whose chief
benefit is that it avoids the incursion of an entirely
new project context, unlike foreach.  Translation:
foreach will be slow and memory-hungry compared to
for.

HTH,
Matt


		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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


Mime
View raw message