#11 recursive="false" scans 1st level subdir

runtime
open
Artur Hefczyc
5
2002-07-27
2002-07-27
Anonymous
No

Even with recurisve set to false, the first level of
subdirectories is scanned and files matching the mask
are processed. Recursive false should cause only files
in the base directory to be processed.

A fix is to make the following change at line 142
of DirWalkerImpl.java:

Change:

all\_dirs.addAll\(getAllDirs\(path\_el\)\);

To:

if\(recursive\) \{
all\_dirs.addAll\(getAllDirs\(path\_el\)\);
\}

With the above change, only files in the src directory
will be processed. Files in any subdirectories of the
src directory will be ignored (when recursive="false").

Discussion