bodewig 2003/06/24 02:37:06
Modified: src/main/org/apache/tools/ant/types FilterSet.java
Log:
Fix error message when filtersfile is missing.
PR: 20825
Revision Changes Path
1.21 +5 -0 ant/src/main/org/apache/tools/ant/types/FilterSet.java
Index: FilterSet.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/types/FilterSet.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- FilterSet.java 27 May 2003 09:30:17 -0000 1.20
+++ FilterSet.java 24 Jun 2003 09:37:06 -0000 1.21
@@ -288,6 +288,11 @@
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;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]