ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: deleting a file
Date Mon, 25 Jun 2001 15:12:32 GMT
Robin Porter <Robin.Porter@kingston.hummingbird.com> wrote:

> I currently have a tag in the file I am working on labeled clean
> which will delete a directory for me.  Can I add to the same clean
> tag a command to delete a file in another directory or do I have to
> create another tag all on its own to remove this extra file from
> another directory.

You can give multiple filesets to a single delete task, something
like this

<delete>
  <fileset dir="my-first-dir" />
  <fileset dir="my-other-dir">
    <include name="my-file" />
  </fileset>
</delete>

is going to remove my-first-dir and my-other-dir/my-file.

Stefan

Mime
View raw message