ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: recursive directory delete
Date Mon, 27 Sep 2004 11:36:29 GMT
> I want to delete all built directories that are in
> some folder under the current directory (the directory
> depth is not specified). 
> 
> So far I tried 
> <delete verbose = "true">
>    <fileset dir="**/built" includes="**/*"/>
> </delete>

Patterns are not allowed in the dir-Attribute, because that dir _must_
exist.


> <delete>
>    <fileset dir=".">		    
>        <include name="**/built"/>
>    </fileset>
> </delete>

should work
- an "includeEmptyDirs" for the delete, otherwise only files are deleted
- usually the directory is called "build" (with a D)

Jan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message