ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Gordon" <tim.gor...@allustra.com>
Subject RE: Repeating an ANT command for each entry in a FileSet
Date Wed, 26 Mar 2003 16:46:54 GMT
Thanks - I've been using ANT 1.4.1 - time to upgrade!

It's just a shame that every task has to be implemented as an implicit
FileSet - this puts a specific type dependency on the DataType used in the
task. I suppose that's what drove the introduction of selectors...

-----Original Message-----
From: Dominique Devienne [mailto:DDevienne@lgc.com]
Sent: 26 March 2003 16:31
To: 'Ant Users List'
Subject: RE: Repeating an ANT command for each entry in a FileSet


Since <signjar> accepts a nested fileset, that shouldn't be too hard to do
;-) There's no equivalent of <apply> to execute a Java command. Closest
thing is to <exec> another JVM to run the Java command, or to use
Ant-contrib's <foreach>. --DD

-----Original Message-----
From: Tim Gordon [mailto:tim.gordon@allustra.com]
Sent: Wednesday, March 26, 2003 10:22 AM
To: Ant Users List
Subject: Repeating an ANT command for each entry in a FileSet

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 [mailto:DDevienne@lgc.com]
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 [mailto:tim.gordon@allustra.com]
Sent: Wednesday, March 26, 2003 9:55 AM
To: Ant Users List
Subject: Repeating a command for each entry in a FileSet

Hello

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?

Thanks

Tim Gordon

Allustra Limited
1 Royal Exchange Avenue
London
EC3V 3LT
Tel 020 7464 4190
Tel 020 7464 4194
http://www.allustra.com/

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


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

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


Mime
View raw message