----- Original Message -----
From: "Tim Vernum" <[EMAIL PROTECTED]>
To: "'ANT-user'" <[EMAIL PROTECTED]>
Sent: Wednesday, March 28, 2001 3:50 PM
Subject: RE: Iteration?


> From: Tom Davies [mailto:[EMAIL PROTECTED]]
>
> > Is there any way to iterate over a file set in Ant?
>
> Will execon / apply do what you want?

Not really -- that allows me to run an external program with an argument
list from a file set, but I would
prefer not to have to start ant again for each file.

I'd like:

<iterate targetname="foo" propertyname="i">
    <fileset ...
    </fileset>
</iterate>

<target name="foo">
    <echo message="${i}" />
</target>

to print each file in the fileset, for instance.

Tom

--
[EMAIL PROTECTED]         http://members.optushome.com.au/tomdavies

Reply via email to