ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Ivanov <rambiusparkisan...@yahoo.com>
Subject Re: Delete files and subdirectories, but NOT the base dir
Date Tue, 12 Oct 2004 09:16:04 GMT
Hello, 

> 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?

Yes, there is. I copied it directly from ant manual on
delete task:
  <delete includeemptydirs="true">
    <fileset dir="build" includes="**/*"/>
  </delete>

deletes all files and subdirectories of build, without
build itself.

HTH Ivan


		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

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


Mime
View raw message