Package hudson.util
Class DirScanner.Glob
java.lang.Object
hudson.util.DirScanner
hudson.util.DirScanner.Glob
- All Implemented Interfaces:
Serializable
- Enclosing class:
- 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 file file
,
the relativePath
sent to the FileVisitor
will be dir/file
if includes
is blank
but file
if it is **
. (This anomaly is historical.)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.util.DirScanner
DirScanner.Filter, DirScanner.Full, DirScanner.Glob
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
Glob
-
Glob
-
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 Details
-
scan
Description copied from class:DirScanner
Scans the given directory and pass files onto the given visitor.- Specified by:
scan
in classDirScanner
- Throws:
IOException
-