ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: delete needs more information ...
Date Fri, 22 Jun 2001 06:13:36 GMT
Viraj Purang <viraj_purang@spincircuit.com> wrote:

> But what finally ends up happening is that all the directories
> remain intact and all files are deleted because the CVS directory
> with allits files does not get deleted.

Are you running Ant 1.3?  There is a bug in its delete task -
includeemptydirs doesn't really work.

>  <delete verbose="true" includeEmptyDirs="true" defaultexcludes="no"> 
>    <fileset dir="." excludes="build.xml"/> 
>  </delete>

This way, the defaultexcludes attribute applies to the implicit
fileset of delete, not the explicit one.  Make that

<delete verbose="true" includeEmptyDirs="true"> 
  <fileset dir="." excludes="build.xml"  defaultexcludes="no"/> 
</delete>

and it should pick up the files in your CVS directories as well.

Stefan

Mime
View raw message