0

Given two directories ('a' and 'b'), each containing files, neither containing directories.

My goal is to remove all files from 'b' that for which there are files with the same name in 'a'.

Can anyone suggest an ant recipe for this (short of writing javascript or java code)?

bmargulies
  • 97,814
  • 39
  • 186
  • 310

1 Answers1

0

You need to look at how fileset selectors work in Ant, specifically the present selector.

The following contains an example:

Community
  • 1
  • 1
Mark O'Connor
  • 76,015
  • 10
  • 139
  • 185