Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 93960 invoked by uid 500); 6 Oct 2000 07:35:56 -0000 Delivered-To: apmail-jakarta-ant-cvs@apache.org Received: (qmail 93946 invoked by uid 1146); 6 Oct 2000 07:35:56 -0000 Date: 6 Oct 2000 07:35:55 -0000 Message-ID: <20001006073555.93944.qmail@locus.apache.org> From: bodewig@locus.apache.org To: jakarta-ant-cvs@apache.org Subject: cvs commit: jakarta-ant/src/main/org/apache/tools/ant ProjectHelper.java bodewig 00/10/06 00:35:55 Modified: src/main/org/apache/tools/ant ProjectHelper.java Log: Don't assume it has been the build file if the parser throws a FileNotFoundException. Could be an external entity or a DTD file as well. Submitted by: Scotte Zinn Revision Changes Path 1.33 +1 -1 jakarta-ant/src/main/org/apache/tools/ant/ProjectHelper.java Index: ProjectHelper.java =================================================================== RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/ProjectHelper.java,v retrieving revision 1.32 retrieving revision 1.33 diff -u -r1.32 -r1.33 --- ProjectHelper.java 2000/09/21 07:19:48 1.32 +++ ProjectHelper.java 2000/10/06 07:35:54 1.33 @@ -127,7 +127,7 @@ throw new BuildException(exc.getMessage(), t); } catch(FileNotFoundException exc) { - throw new BuildException("File \"" + buildFile.toString() + "\" not found"); + throw new BuildException(exc); } catch(IOException exc) { throw new BuildException("Error reading project file", exc);