On 14 Oct 2002, Stefan Bodewig <[EMAIL PROTECTED]> wrote:

> See why <foreach> is not part of core-Ant?  People would overuse it
> like hell. ;-)
> 
> <apply executable="mkdir" type="dir">
>   <fileset dir="src"/>
> </apply>

This doesn't work (I stand corrected, where is the RCS dir?), sorry
Dominique.

So this simple solution only works for a shell script with a hardcoded
"mkdir $1/RCS" or something similar in it.

<apply executable="mkdir" type="dir" dest="src">
  <fileset dir="src"/>
  <mapper type="glob" from="*" to ="*/RCS"/>
  <targetfile/>
</apply>

looks promising, but doesn't work as there is no way to suppress the
srcfile.  I don't know whether

mkdir A B

works on all platforms (especially if B exists).  If your OS can deal
with it, then the task above will work for you.

Otherwise <foreach> or <script> really seem to be the only choice,
apart from something platform specific.

Stefan

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to