You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Neta Bar Tal <NE...@Amdocs.com> on 2004/06/01 08:04:14 UTC

RE: Deleting a directory EXCEPT for a specific subdirectory

Hi Elizabeth,
I don't know if it's help but in version 1.6.1 it works fine

Regards
netaB

-----Original Message-----
From: Elizabeth Cooper [mailto:ecooper@ergotech.com]
Sent: Monday: May 31: 2004 7:52 PM
To: Ant Users List
Subject: Deleting a directory EXCEPT for a specific subdirectory

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



The information contained in this message is proprietary of Amdocs,
protected from disclosure, and may be privileged.
The information is intended to be conveyed only to the designated recipient(s)
of the message. If the reader of this message is not the intended recipient,
you are hereby notified that any dissemination, use, distribution or copying of
this communication is strictly prohibited and may be unlawful.
If you have received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.
Thank you.

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