You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Simon Weatherill <si...@weatherill.org> on 2004/09/23 19:45:08 UTC

how to create directories from a list?

I have a property set to a list of directories that I need to create. 
However, mkdir only supports a single directory and there is no looping 
(I would rather use the stock Ant). Is there a way to do this?

Instead of:

    <mkdir dir="${deploy}/pdf" />
    <mkdir dir="${deploy}/tmp" />

I would like to use (something like):

    <property name="extra.dirs" value="pdf tmp" />
    <mkdirs dirs="${extra.dirs}" root="${deploy}" />

Any ideas?

Thanks,
Simon

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