Package io.jenkins.plugins.reporter.util
Class FileFinder
- java.lang.Object
-
- jenkins.MasterToSlaveFileCallable<String[]>
-
- io.jenkins.plugins.reporter.util.FileFinder
-
- All Implemented Interfaces:
FilePath.FileCallable<String[]>
,Serializable
,org.jenkinsci.remoting.RoleSensitive
public class FileFinder extends MasterToSlaveFileCallable<String[]>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileFinder(String includesPattern)
Creates a new instance ofFileFinder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
find(File workspace)
Returns an array with the file names of the specified file pattern that have been found in the workspace.String[]
invoke(File workspace, hudson.remoting.VirtualChannel channel)
Returns an array with the file names of the specified file pattern that have been found in the workspace.-
Methods inherited from class jenkins.MasterToSlaveFileCallable
checkRoles
-
-
-
-
Constructor Detail
-
FileFinder
public FileFinder(String includesPattern)
Creates a new instance ofFileFinder
.- Parameters:
includesPattern
- the ant file includes pattern to scan for
-
-
Method Detail
-
invoke
public String[] invoke(File workspace, hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
Returns an array with the file names of the specified file pattern that have been found in the workspace.- Parameters:
workspace
- root directory of the workspacechannel
- not used- Returns:
- the file names of all found files
- Throws:
IOException
- if the workspace could not be readInterruptedException
-
-