Package hudson
Class FilePath.ExplicitlySpecifiedDirScanner
- java.lang.Object
-
- hudson.util.DirScanner
-
- hudson.FilePath.ExplicitlySpecifiedDirScanner
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- FilePath
public static final class FilePath.ExplicitlySpecifiedDirScanner extends DirScanner
Helper class to make it easy to send an explicit list of files usingFilePath
methods.- Since:
- 1.532
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.util.DirScanner
DirScanner.Filter, DirScanner.Full, DirScanner.Glob
-
-
Constructor Summary
Constructors Constructor Description ExplicitlySpecifiedDirScanner(Map<String,String> files)
Create a “scanner” (it actually does no scanning).
-
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
-
ExplicitlySpecifiedDirScanner
public ExplicitlySpecifiedDirScanner(Map<String,String> files)
Create a “scanner” (it actually does no scanning).- Parameters:
files
- a map from logical relative paths as perFileVisitor.visit(java.io.File, java.lang.String)
, to actual relative paths within the scanned directory
-
-
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
-
-