ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Let's try this again
Date Mon, 25 Jun 2001 10:19:13 GMT
Patrick O'Hara <> wrote:

> I want a task to delete all files in a subdirectory that have a bak
> extension.

OK, use includes="**/*.bak" on your fileset.

> The directory may or may not have files in it.  I find that the
> delete task will delete the directory if there are no files in it.

If your don't want this, set includeemptydirs to false, so it should

<delete includeemptydirs="false">
  <fileset dir="your-top-dir-here" includes="**/*.bak" />

Does this do what you want?


View raw message