ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Duane Mattos <DMat...@maplesoft.com>
Subject RE: delete directory tree but not main directory.
Date Fri, 18 Oct 2002 18:18:12 GMT
I'm having this problem too. This still doesn't seem to work if "bin" is
empty...

dM

-----Original Message-----
From: Wannheden, Knut [mailto:knut.wannheden@paranor.ch]
Sent: Wednesday, October 09, 2002 6:16 AM
To: 'Ant Users List'
Subject: RE: delete directory tree but not main directory.


There's a typo in my previous post.  It should read (note the difference in
the include pattern):

 <fileset dir="bin" includes="**/*"/>

--
knut

> -----Original Message-----
> From: Wannheden, Knut [mailto:knut.wannheden@paranor.ch]
> Sent: Mittwoch, 9. Oktober 2002 12:14
> To: 'Ant Users List'
> Subject: RE: delete directory tree but not main directory.
> 
> 
> Here's what I usually do:
> 
> <delete includeemptydirs="true">
>  <fileset dir="bin" includes="*/**"/>
> </delete>
> 
> But maybe I misunderstood your problem.
> 
> --
> knut
> 
> > -----Original Message-----
> > From: Diane Holt [mailto:holtdl@yahoo.com]
> > Sent: Mittwoch, 9. Oktober 2002 11:55
> > To: Ant Users List
> > Subject: Re: delete directory tree but not main directory.
> > 
> > 
> > --- Eloise Friedman <eloise.friedman@orcainteractive.com> wrote:
> > > For one of my clean tasks I want to delete a directory 
> > tree, but leave
> > > the base directory.
> > 
> > Only two ways come immediately to mind:
> >   - put a "dot file" (eg, .savdir) in there and 'excludes' it
> >     so the dir still has something in it (kinda funky)
> >   - go ahead and let the dir get deleted and <mkdir> it back
> >     into existence (definitely more straightforward -- what's
> >     so precious about an empty directory?)
> > 
> > Diane
> > 
> > =====
> > (holtdl@yahoo.com)
> > 
> > 
> > 
> > __________________________________________________
> > Do you Yahoo!?
> > Faith Hill - Exclusive Performances, Videos & More
> > http://faith.yahoo.com
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:ant-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: 
> > <mailto:ant-user-help@jakarta.apache.org>
> > 
> 

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message