You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2014/01/11 18:51:22 UTC

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

Author: bodewig
Date: Sat Jan 11 17:51:22 2014
New Revision: 1557432

URL: http://svn.apache.org/r1557432
Log:
copy using channels ignored append attribute so must not be used when append is requested

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=1557432&r1=1557431&r2=1557432&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 Sat Jan 11 17:51:22 2014
@@ -427,7 +427,7 @@ public class ResourceUtils {
                                               effectiveInputEncoding,
                                               outputEncoding, project);
         } else if (source.as(FileProvider.class) != null
-                   && destFile != null) {
+                   && destFile != null && !append) {
             File sourceFile =
                 source.as(FileProvider.class).getFile();
             copyUsingFileChannels(sourceFile, destFile);