public class FileFinder extends Object implements FilePath.FileCallable<String[]>
| Constructor and Description |
|---|
FileFinder(String pattern)
Creates a new instance of
FileFinder. |
| Modifier and Type | Method and Description |
|---|---|
void |
checkRoles(org.jenkinsci.remoting.RoleChecker rc) |
String[] |
find(File workspace)
Returns an array with the filenames 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 filenames of the specified file pattern that have been
found in the workspace.
|
public FileFinder(String pattern)
FileFinder.pattern - the ant file pattern to scan forpublic String[] invoke(File workspace, hudson.remoting.VirtualChannel channel) throws IOException
invoke in interface FilePath.FileCallable<String[]>workspace - root directory of the workspacechannel - not usedIOExceptionpublic String[] find(File workspace)
workspace - root directory of the workspacepublic void checkRoles(org.jenkinsci.remoting.RoleChecker rc)
throws SecurityException
checkRoles in interface org.jenkinsci.remoting.RoleSensitiveSecurityExceptionCopyright © 2016–2022. All rights reserved.