From f997b40b6a1d5bf6de2cc272700117f9eea1a9ec Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Mon, 9 Jan 2006 17:22:17 +0000 Subject: [PATCH] repeat fix for resource operations git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@367342 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/Copy.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Copy.java b/src/main/org/apache/tools/ant/taskdefs/Copy.java index 4bc0bc4dc..bb90ac790 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Copy.java +++ b/src/main/org/apache/tools/ant/taskdefs/Copy.java @@ -889,7 +889,10 @@ public class Copy extends Task { if (targetFile.exists() && !targetFile.delete()) { msg += " and I couldn't delete the corrupt " + toFile; } - throw new BuildException(msg, ioe, getLocation()); + if (failonerror) { + throw new BuildException(msg, ioe, getLocation()); + } + log(msg, Project.MSG_ERR); } } }