Browse Source

More helpful error message.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@359327 13f79535-47bb-0310-9956-ffa450edef68
master
Jesse N. Glick 19 years ago
parent
commit
5dfc9fa652
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/main/org/apache/tools/ant/DirectoryScanner.java

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

@@ -1312,7 +1312,7 @@ public class DirectoryScanner
*/
public synchronized String[] getIncludedFiles() {
if (filesIncluded == null) {
throw new IllegalStateException();
throw new IllegalStateException("Must call scan() first");
}
String[] files = new String[filesIncluded.size()];
filesIncluded.copyInto(files);
@@ -1327,7 +1327,7 @@ public class DirectoryScanner
*/
public synchronized int getIncludedFilesCount() {
if (filesIncluded == null) {
throw new IllegalStateException();
throw new IllegalStateException("Must call scan() first");
}
return filesIncluded.size();
}
@@ -1395,7 +1395,7 @@ public class DirectoryScanner
*/
public synchronized String[] getIncludedDirectories() {
if (dirsIncluded == null) {
throw new IllegalStateException();
throw new IllegalStateException("Must call scan() first");
}
String[] directories = new String[dirsIncluded.size()];
dirsIncluded.copyInto(directories);
@@ -1410,7 +1410,7 @@ public class DirectoryScanner
*/
public synchronized int getIncludedDirsCount() {
if (dirsIncluded == null) {
throw new IllegalStateException();
throw new IllegalStateException("Must call scan() first");
}
return dirsIncluded.size();
}


Loading…
Cancel
Save