Can gradle alter the structure of the tree while copying?
original
desired
The following works, but is there a more gradle-ish way to do this?
ant.copy(todir: destDir) { fileset( dir: "${srcDir}/module", includes: '**/src/**') regexpmapper(from: '^(.*)/src/(.*)$', to: /module-\1\/src\/\2/) }