this here works for me, where c:\test\test2\ remains after the task :

  <delete>
    <fileset >
      <includes name="c:\test\test2\**" />
      <excludes name="c:\test\test2\" />
    </fileset>
  </delete>

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Peter Lanoie
> Sent: Monday, June 16, 2003 11:36
> To: [EMAIL PROTECTED]; 
> [EMAIL PROTECTED]
> Subject: [Nant-users] <delete> bug or incorrect use?
> 
> 
> Hey NAnt-folks,
> 
> I've been trying to figure out what's going on with the 
> <delete> task.  I'm seeing something strange.
> 
> When I do this:
> 
> <delete>
>       <fileset basedir="${dir.deployPath}">
>               <includes name="**\*.*" />
>       </fileset>
> </delete>
> 
> All the FILES in the tree of the basedir are deleted, but the 
> directories in the tree remain.
> 
> When I modify the include to this:
> 
>               <includes name="**" />
> 
> All the files AND directories in the specified basedir are 
> deleted, but so is the basedir itself as if I'd done this:
>       <delete dir="${dir.deployPath}" />
> 
> Is this a bug?  I need to delete ALL the contents of a 
> directory, but not the directory itself.  Is there a way to 
> do this with a particularly formed <includes name="???" /> ?
> 
> Thanks.
> 
> 
> 
> -------------------------------------------------------
> This SF.NET email is sponsored by: eBay
> Great deals on office technology -- on eBay now! Click here: 
> http://adfarm.mediaplex.com/ad/ck/711-11697-> 6916-5
> 
> _______________________________________________
> 
> Nant-users mailing list
> [EMAIL PROTECTED] 
> https://lists.sourceforge.net/lists/listinfo/n> ant-users
> 



-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
NAntContrib-Developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer

Reply via email to