> Hello,
>
> how can i use ant to remove a subset of files from a directory where
> the definition of that subset is the contents of a different
> directory?
>
> from the shell, it would be something like:
>
>
> cd dir1
>
> for i in `find . -print` ; do
> rm dir2/$i
> done
Two ideas spring to mind.
1) Write a custom task
2) Define the first fileset
Use execon to get the basename of each, and write it to a file
Use that file as an excudesfile in another patternset.
The problem is that ant will probaby expect the file to be there at parsetime, but
I patch I sumitted to ant-dev a couple of days ago will allow you to get around that
(if the patch gets applied)