Browse Source

#49430: trying to work around NIO bug in JDK 1.4.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@953809 13f79535-47bb-0310-9956-ffa450edef68
master
Jesse N. Glick 15 years ago
parent
commit
6424390970
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/main/org/apache/tools/ant/util/ResourceUtils.java

+ 1
- 2
src/main/org/apache/tools/ant/util/ResourceUtils.java View File

@@ -530,8 +530,7 @@ public class ResourceUtils {
while (position < count) {
long chunk = Math.min(MAX_IO_CHUNK_SIZE, count - position);
position +=
srcChannel.transferTo(position, chunk,
destChannel);
destChannel.transferFrom(srcChannel, position, chunk);
}
} finally {
FileUtils.close(srcChannel);


Loading…
Cancel
Save