From 770b1dd27562618da3a17f725744dd8f28cac770 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Thu, 3 May 2001 11:18:44 +0000 Subject: [PATCH] Make throw an exception if the file to copy doesn't exist. PR: 1547 Submitted by: Alan Gates git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269002 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 b4a045620..673ccd00a 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Copy.java +++ b/src/main/org/apache/tools/ant/taskdefs/Copy.java @@ -204,7 +204,10 @@ public class Copy extends Task { Project.MSG_VERBOSE); } } else { - log("Could not find file " + file.getAbsolutePath() + " to copy."); + String message = "Could not find file " + + file.getAbsolutePath() + " to copy."; + log(message); + throw new BuildException(message); } }