Klasse FileFinder
- Alle implementierten Schnittstellen:
FilePath.FileCallable<String[]>
,Serializable
,org.jenkinsci.remoting.RoleSensitive
Scans the workspace and finds all files matching a given ant pattern.
- Autor:
- Ullrich Hafner
- Siehe auch:
-
Konstruktorübersicht
KonstruktorBeschreibungFileFinder
(String includesPattern) Creates a new instance ofFileFinder
.FileFinder
(String includesPattern, String excludesPattern) Creates a new instance ofFileFinder
.FileFinder
(String includesPattern, String excludesPattern, boolean followSymlinks) Creates a new instance ofFileFinder
. -
Methodenübersicht
Von Klasse geerbte Methoden jenkins.MasterToSlaveFileCallable
checkRoles
-
Konstruktordetails
-
FileFinder
Creates a new instance ofFileFinder
.- Parameter:
includesPattern
- the ant file includes pattern to scan for
-
FileFinder
Creates a new instance ofFileFinder
.- Parameter:
includesPattern
- the ant file includes pattern to scan forexcludesPattern
- the ant file excludes pattern to scan for
-
FileFinder
Creates a new instance ofFileFinder
.- Parameter:
includesPattern
- the ant file includes pattern to scan forexcludesPattern
- the ant file excludes pattern to scan forfollowSymlinks
- if the scanner should traverse symbolic links
-
-
Methodendetails
-
invoke
Returns an array with the file names of the specified file pattern that have been found in the workspace.- Parameter:
workspace
- root directory of the workspacechannel
- not used- Gibt zurück:
- the file names of all found files
- Löst aus:
IOException
- if the workspace could not be read
-
find
Returns an array with the file names of the specified file pattern that have been found in the workspace.- Parameter:
workspace
- root directory of the workspace- Gibt zurück:
- the file names of all found files
-