ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Pawson <dave.paw...@gmail.com>
Subject Re: conditional make-directory
Date Wed, 25 Apr 2012 06:27:45 GMT
On 25 April 2012 04:56, Stefan Bodewig <bodewig@apache.org> wrote:


>>> In ant that would be
>
>>> <mkdir dir="${here}/fo"/>
>
>>> If the directory already exists the task simply doesn't do anything.
>
>> How might I combine that with a property definition please...
>
> I didn't see you wanted to define a property, sorry.  My recommendation
> then comes down to the same suggestion as Harrold's, use tempfile[1] to
> obtain a name and follow that by mkdir.

Since mkdir is non destructive, that sequence
is quite robust.  Thanks Stefan.

Dave


> [1] http://ant.apache.org/manual/Tasks/tempfile.html
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>



-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

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


Mime
View raw message