I had the same question a while back.  There isn't a way
to do this currently, using the delete task.  I have implemented
the functionality to do so using the <script> task via javascript.

But I think this functionality should be added to the delete task
directly....

Jason

----- Original Message -----
From: "MOUSSAUD Benoît" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 19, 2001 5:22 AM
Subject: How to delete a directory only if it empty?


> I have search into the doc and i have not found how to delete
> a directory obly if its content is empty.
>
> I am using ant version 1.2 on windows 2000, jdk 1.3
>
> Have you any solutions?
> kind regard
> Benoit Moussaud
>
> ----------------------------------------------------------------------------
> Benoit Moussaud - [EMAIL PROTECTED]
> CTS - Cril Telecom Software
> http://www.criltelecom.com
> 8 rue danjou
> 92517 Boulogne Billancourt - France
> Tel: 01 58 17 04 78
>
>

Reply via email to