public abstract static class SCMSourceCriteria.Probe extends Object implements Serializable
| Constructor and Description |
|---|
SCMSourceCriteria.Probe() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
exists(String path)
Checks if the path, relative to the head candidate root, exists or not.
|
SCMFile |
getRoot()
Returns the
SCMFile of the root of this head candidate if such deep introspection can be
cheaply provided by the version control system in question. |
abstract long |
lastModified()
Returns the time that the potential head was last modified.
|
abstract String |
name()
Returns the name of the potential head.
|
public abstract String name()
public abstract long lastModified()
long value representing the time the file was
last modified, measured in milliseconds since the epoch
(00:00:00 GMT, January 1, 1970)public abstract boolean exists(@NonNull
String path)
throws IOException
path - the path.true iff the path exists (may be a file or a directory or a symlink or whatever).IOException - if a remote network call failed and the result is therefore indeterminate.@CheckForNull public SCMFile getRoot()
SCMFile of the root of this head candidate if such deep introspection can be
cheaply provided by the version control system in question.
When available, this provides more capabilities to analyze what's in the repository.
Given the frequency of SCMSourceCriteria.isHead(SCMSourceCriteria.Probe,
hudson.model.TaskListener) call, this method needs to be used with caution.SCMFile of the root of this head candidate or null if this is not available
or would require remote network calls.Copyright © 2004-2013. All Rights Reserved.