Browse Source

<jar> ignores zip64Mode for manifest-only jars

Bugzilla Report 58428
master
Stefan Bodewig 9 years ago
parent
commit
76455a35cb
2 changed files with 6 additions and 0 deletions
  1. +5
    -0
      WHATSNEW
  2. +1
    -0
      src/main/org/apache/tools/ant/taskdefs/Jar.java

+ 5
- 0
WHATSNEW View File

@@ -14,6 +14,11 @@ Fixed bugs:

* <gunzip> and <bunzip2> didn't work for non-filesystem resources.

* <jar> 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:
--------------



+ 1
- 0
src/main/org/apache/tools/ant/taskdefs/Jar.java View File

@@ -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 {


Loading…
Cancel
Save