ant-user mailing list archives

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

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}" />
    </copy>

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
directory.

How can I undo a copy operation?

Thanks in advance.




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message