Browse Source

Unfinished caching of IllegalStateExceptions for concurrent scan() invocations.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277651 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 20 years ago
parent
commit
4585920f35
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      src/main/org/apache/tools/ant/DirectoryScanner.java

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

@@ -772,16 +772,19 @@ public class DirectoryScanner
excludes = nullExcludes ? new String[0] : excludes; excludes = nullExcludes ? new String[0] : excludes;


if (basedir == null) { if (basedir == null) {
throw new IllegalStateException("No basedir set");
illegal = new IllegalStateException("No basedir set");
} }
if (!basedir.exists()) { if (!basedir.exists()) {
throw new IllegalStateException("basedir " + basedir
illegal = new IllegalStateException("basedir " + basedir
+ " does not exist"); + " does not exist");
} }
if (!basedir.isDirectory()) { if (!basedir.isDirectory()) {
throw new IllegalStateException("basedir " + basedir
illegal = new IllegalStateException("basedir " + basedir
+ " is not a directory"); + " is not a directory");
} }
if (illegal != null) {
throw illegal;
}
if (isIncluded("")) { if (isIncluded("")) {
if (!isExcluded("")) { if (!isExcluded("")) {
if (isSelected("", basedir)) { if (isSelected("", basedir)) {


Loading…
Cancel
Save