ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Kurt Olsen)
Subject How do I delete all files & subdirs under a directory?
Date Thu, 18 Oct 2001 20:04:10 GMT
Given an NFS mounting on a solaris box
that I cannot attempt to delete (then recreate):


How do I delete all files and subdirs under it?
I've tried 10 variations of the <delete> task
and really don't want to explicitly name all
the filetypes with <fileset>.

-----Original Message-----
From: Daniel Martin []
Sent: Thursday, October 18, 2001 9:33 AM
Subject: Re: Pattern set and ~

"ALI,HANEEF (HP-Cupertino,ex1)" <> writes:

> Hi,
> Is there any problem with the following target.  It doesn't seems to work
> for
> the files whose names end with ~.  For other files it works. I tried
> escaping it 
> with backslash but no luck

Try adding the attribute defaultexcludes="no" to your fileset.  This
is documented at the end of "Directory-based Tasks" in the Ant manual.

View raw message