ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Gordon" <>
Subject Repeating an ANT command for each entry in a FileSet
Date Wed, 26 Mar 2003 16:21:44 GMT
I was also wondering how you'd acheive the same effect if you wanted to
perform a non-FileSet-based ANT command instead of doing an exec.

For instance, I might want to sign all the jars in a directory - it's easy
to get a FileSet matching *.jar - how do you then iterate through the
results of the FileSet calling signjar for each?

-----Original Message-----
From: Dominique Devienne []
Sent: 26 March 2003 16:05
To: 'Ant Users List'
Subject: RE: Repeating a command for each entry in a FileSet

That's the purpose in live of <apply> ;-) --DD

-----Original Message-----
From: Tim Gordon []
Sent: Wednesday, March 26, 2003 9:55 AM
To: Ant Users List
Subject: Repeating a command for each entry in a FileSet


Is there any way to perform the same command or set of commands for each
file in a FileSet?

I want to be able to get a FileSet, matching all files on a pattern, and
then do a separate exec for each file.

Any ideas?


Tim Gordon

Allustra Limited
1 Royal Exchange Avenue
Tel 020 7464 4190
Tel 020 7464 4194

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

View raw message