You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bo...@apache.org on 2001/05/03 15:19:52 UTC
cvs commit: jakarta-ant/src/main/org/apache/tools/ant DirectoryScanner.java
bodewig 01/05/03 06:19:51
Modified: src/main/org/apache/tools/ant DirectoryScanner.java
Log:
Make DirectoryScanner's error message a bit more useful.
PR: 1234
Revision Changes Path
1.13 +4 -2 jakarta-ant/src/main/org/apache/tools/ant/DirectoryScanner.java
Index: DirectoryScanner.java
===================================================================
RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/DirectoryScanner.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- DirectoryScanner.java 2001/03/29 10:29:46 1.12
+++ DirectoryScanner.java 2001/05/03 13:19:50 1.13
@@ -655,10 +655,12 @@
throw new IllegalStateException("No basedir set");
}
if (!basedir.exists()) {
- throw new IllegalStateException("basedir does not exist");
+ throw new IllegalStateException("basedir " + basedir
+ + " does not exist");
}
if (!basedir.isDirectory()) {
- throw new IllegalStateException("basedir is not a directory");
+ throw new IllegalStateException("basedir " + basedir
+ + " is not a directory");
}
if (includes == null) {