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 Tue, 24 Apr 2012 15:49:49 GMT
On 24 April 2012 16:00, Stefan Bodewig <bodewig@apache.org> wrote:
> On 2012-04-24, Dave Pawson wrote:
>
>> In bash it might be
>
>> #check/create fo directory for output, per font
>> if [[ ! -d ${here}/fo ]]
>>     then
>>     mkdir ${here}/fo
>> fi
>
> In ant that would be
>
> <mkdir dir="${here}/fo"/>
>
> If the directory already exists the task simply doesn't do anything.
>
> Stefan


Even easier.

Thanks Stafan.

regards




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