ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "T Master" <tmas...@iknowledgeinc.com>
Subject Re: How do I delete all files & subdirs under a directory?
Date Thu, 18 Oct 2001 20:11:34 GMT
Recursive is:   mydir/**

**  denotes recursive.

Can be used with files too:    mydir/**.class

----- Original Message -----
From: "Kurt Olsen" <kolsen@get2hawaii.com>
To: <ant-user@jakarta.apache.org>
Sent: Thursday, October 18, 2001 2:04 PM
Subject: How do I delete all files & subdirs under a directory?


> Hi,
> Given an NFS mounting on a solaris box
> that I cannot attempt to delete (then recreate):
>
>    /export/home/prerelease
>
> 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 [mailto:dtmartin24@home.com]
> Sent: Thursday, October 18, 2001 9:33 AM
> To: ant-user@jakarta.apache.org
> Subject: Re: Pattern set and ~
>
>
> "ALI,HANEEF (HP-Cupertino,ex1)" <haneef_ali@hp.com> 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.
>


Mime
View raw message