> From: Stefan Bodewig [mailto:[EMAIL PROTECTED]
>
> Daniel Barclay <[EMAIL PROTECTED]> wrote:
>
> > Stefan Bodewig wrote:
> >>
> >> OK, here is my take, using <anton> which doesn't exist right now
> >> but has been promised for Ant2 (and could very well be there in
> >> Ant1 as well).
> >
> > We have Apply which executes an external executable on multiple
> > files. Proposed AntOn executes Ant on multiple build files.
>
> And there'll be japply or javaon or whatever as well, yes.
>
> > Why not generalize this have some feature that executes an arbitrary
> > task on multiple files?
>
> This can be written in Ant2 quite easily (as Roger already pointed
> out). I doubt that the concept is general enough though, what would
> mkdir do with a set of existing files, what would echo do ...
>
Well <mkdir> would not be that difficult:
<mkdir >
<foreach name="dir" dir="mylibs"> <!-- "dir" is the att to loop on -->
<include name="*.jar"/>
<glob name="*.jar" to="*" /> <!-- what was the syntax? -->
</foreach>
</mkdir>
Which just creates a directory for every jar in the library.
Jose Alberto
> Stefan
>