Bug#571542: [patch] ant FTBFS on gcj architectures

Petr Salinger Petr.Salinger at seznam.cz
Tue Mar 9 21:23:48 UTC 2010


Hi,

may be this one would be yet better.

Petr


--- src/main/org/apache/tools/ant/util/ResourceUtils.java
+++ src/main/org/apache/tools/ant/util/ResourceUtils.java
@@ -466,7 +466,7 @@
                  long count = srcChannel.size();
                  while (position < count) {
                      position +=
-                        srcChannel.transferTo(position, FileUtils.BUF_SIZE,
+                        srcChannel.transferTo(position, count - position,
                                                destChannel);
                  }
              } finally {






More information about the pkg-java-maintainers mailing list