public class FileFinder extends jenkins.MasterToSlaveFileCallable<String[]>
| Constructor and Description |
|---|
FileFinder(String includesPattern)
Creates a new instance of
FileFinder. |
FileFinder(String includesPattern,
String excludesPattern)
Creates a new instance of
FileFinder. |
FileFinder(String includesPattern,
String excludesPattern,
boolean followSymlinks)
Creates a new instance of
FileFinder. |
| Modifier and Type | Method and 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.
|
public FileFinder(String includesPattern)
FileFinder.includesPattern - the ant file includes pattern to scan forpublic FileFinder(String includesPattern, String excludesPattern)
FileFinder.includesPattern - the ant file includes pattern to scan forexcludesPattern - the ant file excludes pattern to scan forpublic FileFinder(String includesPattern, String excludesPattern, boolean followSymlinks)
FileFinder.includesPattern - the ant file includes pattern to scan forexcludesPattern - the ant file excludes pattern to scan forfollowSymlinks - if the scanner should traverse symbolic linkspublic String[] invoke(File workspace, hudson.remoting.VirtualChannel channel) throws IOException
workspace - root directory of the workspacechannel - not usedIOException - if the workspace could not be readCopyright © 2016–2020. All rights reserved.