ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kyles" <>
Subject Help to do a logical reverse of a copy but really a delete
Date Thu, 25 Sep 2003 21:08:01 GMT

I want to delete selected files from a directory that also are to be found
in another directory, how to do this?

In short I have done an Ant 'copy' task such as:

    <copy todir="${target}">
      <fileset dir="${source}" />

Later I want to delete from 'target' the files copied there from 'source'.

I basicly want to 'undo' the copy.

I have looked at the delete task but it is not clear to me how I can use a
file set from another directory as a guide to delete from yet another

How can I undo a copy operation?

Thanks in advance.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message