Browse Source

Make DirectoryScanner's error message a bit more useful.

PR: 1234


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

+ 4
- 2
src/main/org/apache/tools/ant/DirectoryScanner.java View File

@@ -655,10 +655,12 @@ strLoop:
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) {


Loading…
Cancel
Save