public class RevisionUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RevisionUtils.Type
Enumeration of source control types.
|
Constructor and Description |
---|
RevisionUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
extract(RevisionHandler handler)
Extracts the revision string returned by the RevisionHandler.
|
static java.lang.String |
extract(java.lang.String s)
Extracts the revision string.
|
static RevisionUtils.Type |
getType(RevisionHandler handler)
Determines the type of a (sanitized) revision string returned by the
RevisionHandler.
|
static RevisionUtils.Type |
getType(java.lang.String revision)
Determines the type of a (sanitized) revision string.
|
static void |
main(java.lang.String[] args)
For testing only.
|
public static java.lang.String extract(RevisionHandler handler)
handler
- the RevisionHandler to get the revision forpublic static java.lang.String extract(java.lang.String s)
s
- the string to get the revision string frompublic static RevisionUtils.Type getType(RevisionHandler handler)
handler
- the RevisionHandler to determine the type forpublic static RevisionUtils.Type getType(java.lang.String revision)
revision
- the revision to get the type forextract(String)
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- the commandline argumentsjava.lang.Exception
- if something goes wrong