ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Weatherill <>
Subject how to create directories from a list?
Date Thu, 23 Sep 2004 17:45:08 GMT
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?


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

View raw message