ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Vernum <Tim.Ver...@macquarie.com.au>
Subject RE: executing task for each file in file set
Date Tue, 22 May 2001 00:52:05 GMT

From: John.D.Casey@mail.sprint.com 

> I have written a 
> task that does this.  It only has one drawback: a couple of the basic 
> Ant classes must be modified to enable the use of sub-tasks. 

I've written a foreach task that avoids the need to modify other
tasks.
You can find it in the archive under foreach, or mail me for a copy.
(If I had cvs access from work, I'd put it on sourceforge, but so far I
 haven't managed to get it to work.)

> -----Original Message-----
> From: Daniel.Barclay [mailto:Daniel.Barclay@digitalfocus.com]
> Sent: Monday, May 21, 2001 3:11 PM
> To: ant-dev
> Subject: executing task for each file in file set
> 
> 
> Does the for-each processing proposed for Ant2 cover running some task
> or series of tasks over each file in a file set?
> 
> I'd like to something like:
> 
>   <unjar src="???.jar" dest="classes" />
> 
> for each file in a fileset like:
> 
>   <fileset dir="whatever" includes="*.jar" />
> 
> 
> Thanks,
> Daniel
> -- 
> Daniel Barclay
> Digital Focus
> Daniel.Barclay@digitalfocus.com
> 

Mime
View raw message