ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Deleting a directory EXCEPT for a specific subdirectory
Date Tue, 01 Jun 2004 14:37:30 GMT
I don't know about this.  Your example works fine for
me with bleeding edge Ant.  Try 1.6.1 if you can.

-Matt

--- Elizabeth Cooper <ecooper@ergotech.com> wrote:
> I have a directory structure such as:
> 
> test
>       |------- temp
>       |------- scratch
>       |------- save
> 
> I want to do a clean of  the "test" directory,
> leaving ONLY the "save" 
> subdirectory. I am using Ant 1.5
> 
> 
> I have tried something like:
> 
> <target name="clean.temp" >
>    <delete includeEmptyDirs="true">
>      <fileset dir="test" excludes="save/**" />
>    </delete>
> </target>
> 
> But this deletes everything in the test directory,
> including save.
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.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