ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1557432 - /ant/core/trunk/src/main/org/apache/tools/ant/util/ResourceUtils.java
Date Sat, 11 Jan 2014 17:51:22 GMT
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);



Mime
View raw message