Browse Source

Workaround for a bug in Kaffee.

Submitted by:	Takashi Okamoto <toraneko@kun.ne.jp>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268777 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 24 years ago
parent
commit
b30d297b23
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/main/org/apache/tools/ant/taskdefs/Zip.java

+ 3
- 1
src/main/org/apache/tools/ant/taskdefs/Zip.java View File

@@ -465,7 +465,9 @@ public class Zip extends MatchingTask {
byte[] buffer = new byte[8 * 1024];
int count = 0;
do {
zOut.write(buffer, 0, count);
if (count != 0) {
zOut.write(buffer, 0, count);
}
count = in.read(buffer, 0, buffer.length);
} while (count != -1);
}


Loading…
Cancel
Save