You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by jk...@apache.org on 2010/03/12 09:44:54 UTC

svn commit: r922179 - /ant/core/trunk/src/main/org/apache/tools/ant/util/ResourceUtils.java

Author: jkf
Date: Fri Mar 12 08:44:54 2010
New Revision: 922179

URL: http://svn.apache.org/viewvc?rev=922179&view=rev
Log:
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)

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/util/ResourceUtils.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/util/ResourceUtils.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/util/ResourceUtils.java?rev=922179&r1=922178&r2=922179&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/util/ResourceUtils.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/util/ResourceUtils.java Fri Mar 12 08:44:54 2010
@@ -466,7 +466,7 @@ public class ResourceUtils {
                 long count = srcChannel.size();
                 while (position < count) {
                     position +=
-                        srcChannel.transferTo(position, FileUtils.BUF_SIZE,
+                        srcChannel.transferTo(position, count - position,
                                               destChannel);
                 }
             } finally {