Package io.jenkins.plugins.reporter.util
Class FileFinder
- All Implemented Interfaces:
FilePath.FileCallable<String[]>,Serializable,ControllerToAgentFileCallable<String[]>,org.jenkinsci.remoting.RoleSensitive
- See Also:
-
Constructor Details
-
FileFinder
Creates a new instance ofFileFinder.- Parameters:
includesPattern- the ant file includes pattern to scan for
-
-
Method Details
-
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
-
find
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 workspace- Returns:
- the file names of all found files
-