Package hudson.util
Class DirScanner.Glob
- java.lang.Object
-
- hudson.util.DirScanner
-
- hudson.util.DirScanner.Glob
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- DirScanner
public static class DirScanner.Glob extends DirScanner
Scans by using Ant GLOB syntax.An initial basename is prepended as with
DirScanner.Full
if the includes and excludes are blank. Otherwise there is no prepended path. So for example when scanning a directory/tmp/dir
containing a filefile
, therelativePath
sent to theFileVisitor
will bedir/file
ifincludes
is blank butfile
if it is**
. (This anomaly is historical.)- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.util.DirScanner
DirScanner.Filter, DirScanner.Full, DirScanner.Glob
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
scan(File dir, FileVisitor visitor)
Scans the given directory and pass files onto the given visitor.-
Methods inherited from class hudson.util.DirScanner
scanSingle
-
-
-
-
Constructor Detail
-
Glob
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public Glob(String includes, String excludes, boolean useDefaultExcludes, OpenOption... openOptions)
- Since:
- 2.275 and 2.263.2
-
-
Method Detail
-
scan
public void scan(File dir, FileVisitor visitor) throws IOException
Description copied from class:DirScanner
Scans the given directory and pass files onto the given visitor.- Specified by:
scan
in classDirScanner
- Throws:
IOException
-
-