ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ja...@livemedia.com
Subject RE: <delete> just dir contents?
Date Wed, 08 Nov 2000 15:18:42 GMT
nope. subdirectories remain.


james@livmedia.com



-----Original Message-----
From: Paul Arzul [mailto:patricka@exinet.co.za]
Sent: Wednesday, November 08, 2000 1:46 AM
To: ant-user@jakarta.apache.org
Subject: Re: <delete> just dir contents?


On 8 Nov 2000, Stefan Bodewig wrote:

: >>>>> "j" == james  <james@livemedia.com> writes:
: 
:  j> Sorry if this have been covered: is there any way do <delete> the
:  j> contents of a directory, files, dirs & all, but not the dir
:  j> itself?
: 
: Yes, use a nested fileset for that.
: 
: <delete>
:   <fileset dir="dir.to.clean" />
: </delete>
: 
: should work

works, but if "dir.to.clean" does not exist, your build
will fail. :(

that behaviour appears to be in conflict with the silent
failure of:

<delete dir="dir.to.clean" />

- p

-- 
Please send email to me using plain text only. :)



Mime
View raw message