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 patterns
Date Thu, 23 Aug 2001 05:33:54 GMT
On Wed, 22 Aug 2001, Jack Woehr <jax@purematrix.com> wrote:

> In a directory A I have subdirs AA, BB, CC ...
> I want to delete AA BB CC but not DD.

<delete includeEmptyDirs="true">
  <fileset dir="A">
    <include name="AA/**" />
    <include name="BB/**" />
    <include name="CC/**" />
  </fileset>
</delete>

or alternatively

<delete includeEmptyDirs="true">
  <fileset dir="A">
    <exclude name="DD/**" />
    <exclude name="DD" />
  </fileset>
</delete>

and use Ant 1.4beta as includeEmptyDirs has a bug in Ant 1.3.

Stefan

Mime
View raw message