I would like to create a fileset of files matching a specific pattern, but exclude from this set any files which have a specific other file in the same directory.
E.g., I would like a fileset which matches all ./*/file.xml files, like:
<fileset dir="${some.dir}" includes="*/file.xml" />
... but I want to exclude any file.xml files which are in the same director as an ignore.this file.
So if the dir structure is:
foo/file.xml
bar/file.xml
bar/ignore.this
... the the file.xml in foo will be selected, but bar will not.