From a5ad127be2cc2c71abdbf4f10c474d5ab6fd55c6 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Sat, 11 Jan 2014 17:51:22 +0000 Subject: [PATCH] copy using channels ignored append attribute so must not be used when append is requested git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1557432 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/util/ResourceUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/util/ResourceUtils.java b/src/main/org/apache/tools/ant/util/ResourceUtils.java index dfa7442ca..81a8da7c3 100644 --- a/src/main/org/apache/tools/ant/util/ResourceUtils.java +++ b/src/main/org/apache/tools/ant/util/ResourceUtils.java @@ -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);