Browse Source

problem 48894

1) buffer size management is present in FileChannel, so we do not need to impose any limit.
2) bus error in gij when requested copy size > remaining file size (this is a bug in gij that will not be triggered anymore by ant from this line)

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@922179 13f79535-47bb-0310-9956-ffa450edef68
master
Jacobus Martinus Kruithof 15 years ago
parent
commit
c72633ebe4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/util/ResourceUtils.java

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

@@ -466,7 +466,7 @@ public class ResourceUtils {
long count = srcChannel.size(); long count = srcChannel.size();
while (position < count) { while (position < count) {
position += position +=
srcChannel.transferTo(position, FileUtils.BUF_SIZE,
srcChannel.transferTo(position, count - position,
destChannel); destChannel);
} }
} finally { } finally {


Loading…
Cancel
Save