Browse Source

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 <szinn@patronix.com>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268064 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 25 years ago
parent
commit
df7215b8f5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/ProjectHelper.java

+ 1
- 1
src/main/org/apache/tools/ant/ProjectHelper.java View File

@@ -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);


Loading…
Cancel
Save