ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: deleting a file
Date Mon, 25 Jun 2001 15:12:32 GMT
Robin Porter <> 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

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

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


View raw message