Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@jakarta.apache.org Received: (qmail 52267 invoked by uid 500); 3 May 2001 11:18:49 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: ant-dev@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 52112 invoked by uid 500); 3 May 2001 11:18:47 -0000 Delivered-To: apmail-jakarta-ant-cvs@apache.org Date: 3 May 2001 11:18:46 -0000 Message-ID: <20010503111846.51965.qmail@apache.org> From: bodewig@apache.org To: jakarta-ant-cvs@apache.org Subject: cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Copy.java bodewig 01/05/03 04:18:46 Modified: src/main/org/apache/tools/ant/taskdefs Copy.java Log: Make throw an exception if the file to copy doesn't exist. PR: 1547 Submitted by: Alan Gates Revision Changes Path 1.16 +4 -1 jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Copy.java Index: Copy.java =================================================================== RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Copy.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- Copy.java 2001/04/27 11:58:50 1.15 +++ Copy.java 2001/05/03 11:18:44 1.16 @@ -204,7 +204,10 @@ 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); } }