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 <[EMAIL PROTECTED]>
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);