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:[EMAIL PROTECTED]] > Sent: Mittwoch, 9. Oktober 2002 11:55 > To: Ant Users List > Subject: Re: delete directory tree but not main directory. > > > --- Eloise Friedman <[EMAIL PROTECTED]> 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 > > ===== > ([EMAIL PROTECTED]) > > > > __________________________________________________ > Do you Yahoo!? > Faith Hill - Exclusive Performances, Videos & More > http://faith.yahoo.com > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> >