From 76455a35cb894dde4142555892bb30a4cee495f1 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Sat, 19 Sep 2015 15:34:23 +0200 Subject: [PATCH] ignores zip64Mode for manifest-only jars Bugzilla Report 58428 --- WHATSNEW | 5 +++++ src/main/org/apache/tools/ant/taskdefs/Jar.java | 1 + 2 files changed, 6 insertions(+) diff --git a/WHATSNEW b/WHATSNEW index 2ff6ee474..18708f9cd 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -14,6 +14,11 @@ Fixed bugs: * and didn't work for non-filesystem resources. + * ignored the zip64Mode attribute when creating manifest-only + jars. This resulted in jar files that couldn't be read by Java5. + Bugzilla Report 58428 + + Other changes: -------------- diff --git a/src/main/org/apache/tools/ant/taskdefs/Jar.java b/src/main/org/apache/tools/ant/taskdefs/Jar.java index c2c0f0edb..28738b18d 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Jar.java +++ b/src/main/org/apache/tools/ant/taskdefs/Jar.java @@ -914,6 +914,7 @@ public class Jar extends Zip { zOut = new ZipOutputStream(getDestFile()); zOut.setEncoding(getEncoding()); + zOut.setUseZip64(getZip64Mode().getMode()); if (isCompress()) { zOut.setMethod(ZipOutputStream.DEFLATED); } else {