There are many questions on this topic but none of the answers are solving my problem. Starting this thread again to get fresh input.
I tried two different approaches f
I think it should probably be:
<copy todir="${dir.classes}"> <fileset dir="${dir.src}" > <exclude name="**/*.java"/> <exclude name="**/A-dir/**/B-dir/**"/> </fileset> </copy>
Note the **/A-dir/** instead of A-dir/**.
**/A-dir/**
A-dir/**