ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Pawson <dave.paw...@gmail.com>
Subject conditional make-directory
Date Tue, 24 Apr 2012 14:44:41 GMT
I need a temporary directory.

What's the 'ant speak' for

property name='my-temp'  if directory exists (my-temp) then my-temp
else mkdir 'my-temp'

I hope that's clear?
In bash it might be

#check/create fo directory for output, per font
if [[ ! -d ${here}/fo ]]
    then
    mkdir ${here}/fo

fi



TIA

-- 
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