What steps will reproduce the problem?
1. install Ant
2. checkout jarjar
3. run ant
Ant's <zip> task has added a new signature to the zipDir method (taking
a Resource rather than a File as first argument) so you get an error when
compiling AntJarProcessor
[javac] src/main/com/tonicsystems/jarjar/util/AntJarProcessor.java:87: reference to zipDir is ambiguous, both method zipDir(java.io.File,org.apache.tools.zip.ZipOutputStream,java.lang.String,int,org.apache.tools.zip.ZipExtraField[]) in org.apache.tools.ant.taskdefs.Zip and method zipDir(org.apache.tools.ant.types.Resource,org.apache.tools.zip.ZipOutputStream,java.lang.String,int,org.apache.tools.zip.ZipExtraField[]) in org.apache.tools.ant.taskdefs.Zip match
[javac] super.zipDir(null, zOut, dir + "/", ZipFileSet.DEFAULT_DIR_MODE, JAR_MARKER);
[javac] ^
[javac] 1 error
The attached trivial patch allows jarjar to be compiled with Ant 1.7.x and
1.8.x (and likely 1.6.x with x > 2, but I haven't tried that).
Original issue reported on code.google.com by stefan.b...@gmail.com on 27 Aug 2010 at 10:08
Original issue reported on code.google.com by
stefan.b...@gmail.com
on 27 Aug 2010 at 10:08Attachments: