ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Stupid <delete> question
Date Tue, 14 Nov 2000 13:59:06 GMT
KC Baltz <> wrote:

> I just want to delete all the files and subdirectories in a given
> directory.  So if I have a directory /tmp, I want to delete any
> files in /tmp (got that working) and any subdirectories (this isn't
> working).

but not /tmp itself. 

Sorry, but I think this is not possible. Closest you can get is

<delete dir="/tmp" />
<mkdir dir="/tmp" />

but this behavior is the same you'd see with deltree as well, isn't

ISTR that handling of empty directories was on Glenn's TODO list.


View raw message