Browse Source

Fix error message when filtersfile is missing.

PR: 20825


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274697 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
0e3229eb49
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/main/org/apache/tools/ant/types/FilterSet.java

+ 5
- 0
src/main/org/apache/tools/ant/types/FilterSet.java View File

@@ -288,6 +288,11 @@ public class FilterSet extends DataType implements Cloneable {
throw tooManyAttributes();
}

if (!filtersFile.exists()) {
throw new BuildException("Could not read filters from file "
+ filtersFile + " as it doesn't exist.");
}

if (filtersFile.isFile()) {
log("Reading filters from " + filtersFile, Project.MSG_VERBOSE);
FileInputStream in = null;


Loading…
Cancel
Save