ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peterrei...@apache.org>
Subject Re: Delete files and subdirectories, but NOT the base dir
Date Tue, 12 Oct 2004 09:13:48 GMT
Try:
    <delete includeEmptyDirs="yes">
      <fileset dir="dir" includes="**/*"/>
    </delete>
Peter

Robert Mark Bram wrote:

> Hi All!
>
> I want to recursively delete everything inside build, but leaving 
> build alone. This is what I have so far.
>
> <delete includeEmptyDirs="true" >
> <fileset dir="${build}" defaultexcludes="no" />
> </delete>
>
> Is there a way to do this other than deleting and re-creating the 
> whole thing?
> <delete dir="${build}" />
> <mkdir dir="${build}" />
>
> Advice would be most welcome!
>
> Rob
> :)
>


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


Mime
View raw message