How to write an ant task that removes files from a previously compiled JAR?
Let\'s say the files in my JAR are:
aaa/bbb/ccc/Class1 aaa/bbb/ccc/Class2
I came here looking to use ant as a workaround some short comings in gradle unzip.
On the off chance someone else is in the same boat.
Here is an example:
task antUnzip() << { ant.jar(destfile : "stripped.jar") { zipfileset (src : "full.jar", excludes : "files/to/exclude/**/*.file") { } } }