From df7215b8f5445dea10a23218802b863cab19e4ec Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Fri, 6 Oct 2000 07:35:54 +0000 Subject: [PATCH] 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 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268064 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/ProjectHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/ProjectHelper.java b/src/main/org/apache/tools/ant/ProjectHelper.java index 7c433b076..8df38d2c8 100644 --- a/src/main/org/apache/tools/ant/ProjectHelper.java +++ b/src/main/org/apache/tools/ant/ProjectHelper.java @@ -127,7 +127,7 @@ public class ProjectHelper { 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);