public class PatternsEntityMatcher extends Object implements ConfigurationEntityMatcher
| Constructor and Description |
|---|
PatternsEntityMatcher(String[] includesPatterns) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getIncludes()
All patterns this matcher matches; used only for informational purposes in the UI.
|
boolean |
matches(hudson.model.Saveable saveable,
File file)
Determines whether the matcher matches a given combination of saveable and file.
|
boolean |
matches(hudson.model.Saveable saveable,
String pathRelativeToRoot,
boolean isDirectory)
Determines whether the matcher would have matched a deleted file, of which we know only its path and possibly whether it was directory.
|
String[] |
matchingFilesFrom(File rootDirectory,
org.apache.tools.ant.types.selectors.FileSelector selector)
Collects all files under the given rootDirectory that match, restricted by the given
link FileSelector. |
public PatternsEntityMatcher(String[] includesPatterns)
public boolean matches(hudson.model.Saveable saveable,
File file)
ConfigurationEntityMatchermatches in interface ConfigurationEntityMatchersaveable - the file belongs tofile - that is to be matchedtrue on match, false otherwisepublic boolean matches(hudson.model.Saveable saveable,
String pathRelativeToRoot,
boolean isDirectory)
ConfigurationEntityMatchermatches in interface ConfigurationEntityMatchersaveable - the file belonged topathRelativeToRoot - of the file or directory (which Jenkins has already deleted)isDirectory - true if it's known that the path referred to a directory, false otherwisetrue on match, false otherwisepublic List<String> getIncludes()
ConfigurationEntityMatchergetIncludes in interface ConfigurationEntityMatcherpublic String[] matchingFilesFrom(File rootDirectory, org.apache.tools.ant.types.selectors.FileSelector selector)
ConfigurationEntityMatcherlink FileSelector.matchingFilesFrom in interface ConfigurationEntityMatcherrootDirectory - to traverseselector - restricting the traversalCopyright © 2004-2016. All Rights Reserved.