ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: <delete>
Date Fri, 31 May 2002 18:26:42 GMT
Try this:

<delete includeEmptyDirs="true">
  <fileset dir="D:/aaa">
    <exclude name="ccc/**" />
  </fileset>
</delete>

-----Original Message-----
From: Jet Hariramani [mailto:jetesh.hariramani@analine.com] 
Sent: Friday, May 31, 2002 1:19 PM
To: Ant Users List
Subject: <delete> 

Hi!

I have been going crazy trying to write a delete task for the following dir
structure:

D:\aaa
  |
  | --------------D:\aaa\bbb
  |
  | --------------D:\aaa\ccc
  |
  | --------------D:\aaa\ddd
  |

all directories have subdirectories.  I want to delete everything under
D:\aaa except for the subtree D:\aaa\ccc

This is not working...
 <delete includeEmptyDirs="true">
     <fileset dir="D:/aaa">
     <exclude name="ccc"/>
   </fileset>
  </delete>

Any help would be appreciated!  I am using ANT 1.4.1

Thanks!!!!


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


Mime
View raw message