ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KC Baltz <KBa...@responsenetworks.com>
Subject RE: deleting a directory recursively
Date Wed, 07 Mar 2001 18:23:42 GMT
Well, if you are using Ant 1.3, you could try adding includeEmptyDirs="true"
as an attribute of <delete>  That's supposed to delete empty dirs that match
the pattern.  But I think it's buggy such that if _notes has subdirectories,
only the leaf directories will be deleted.

K.C.

> -----Original Message-----
> From: Bryon Day [mailto:bryon.day@aws-online.co.uk]
> Sent: Wednesday, March 07, 2001 12:52 PM
> To: ant-user@jakarta.apache.org
> Subject: deleting a directory recursively
> 
> 
> dear all,
> 
> can anyone help me?
> 
> I'm trying to use Ant to recursively remove a directory 
> within my project
> directory structure.  the directory is "_notes" and there are 
> MANY instances
> throughout the project.
> 
> here is a copy of the xml I'm using:
> 
>   <target name="clean">
> 	<delete>
> 		<fileset dir="wwwroot" includes="**/_notes/**" />
> 	</delete>
>   </target>
> 
> 
> 
> when run, this just empties the directories but does not remove the
> directory itself.
> 
> 
> all help appreciated.
> 
> 
> cheers,
> Bryon.
> 

Mime
View raw message