ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Newbie question: how to recurse into subdirectories?
Date Mon, 14 Oct 2002 06:23:48 GMT
On Sat, 12 Oct 2002, Dominique Devienne <> wrote:

> As far as your question... A combination of Ant-contrib's <foreach>,
> possibly a <dirset> followed by <pathconvert>, with <mkdir> inside
> tge loop might be able to do what you want. Just might... --DD

See why <foreach> is not part of core-Ant?  People would overuse it
like hell. ;-)

<apply executable="mkdir" type="dir">
  <fileset dir="src"/>

is probably going to work in a cross-platform way (not sure whether
z/OS, OS/400 or MacOS < 10 have a mkdir command, but Windows, Unix and
VMS should do).

And even though it spawns native processes, it is probably going to be
faster than <foreach>.


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

View raw message