|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.cruisecontrol.labelincrementers.SVNLabelIncrementer
This class provides a label incrementation based on svn revision numbers.
This class expects the label format to be "x<sep>y[<sep>z]",
where x is any String and y is an integer and <sep> a separator, the
last part z, is optional, and gets generated and later incremented in case a
build is forced. The default separator is "." and can be modified using
setSeparator(java.lang.String).
| Constructor Summary | |
SVNLabelIncrementer()
|
|
| Method Summary | |
java.lang.String |
getDefaultLabel()
Called by Project when there is no previously serialized label. |
java.lang.String |
getLabelPrefix()
|
java.lang.String |
getSeparator()
|
protected java.lang.String |
getSvnRevision()
|
java.lang.String |
incrementLabel(java.lang.String oldLabel,
org.jdom.Element buildLog)
Increments the label when a successful build occurs. |
boolean |
isPreBuildIncrementer()
Some implementations of LabelIncrementer, such as those involving
dates, are better suited to being incremented before building rather
than after building. |
boolean |
isValidLabel(java.lang.String label)
Check the validity of a user-supplied label, making sure that it can be incremented successfully by the appropriate implementation of LabelIncrementer |
void |
setLabelPrefix(java.lang.String labelPrefix)
|
void |
setSeparator(java.lang.String separator)
|
void |
setWorkingCopyPath(java.lang.String path)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SVNLabelIncrementer()
| Method Detail |
public boolean isPreBuildIncrementer()
LabelIncrementerLabelIncrementer, such as those involving
dates, are better suited to being incremented before building rather
than after building. This method determines whether to increment before
building or after building.
isPreBuildIncrementer in interface LabelIncrementer
public java.lang.String incrementLabel(java.lang.String oldLabel,
org.jdom.Element buildLog)
LabelIncrementer
incrementLabel in interface LabelIncrementerbuildLog - JDOM Element representation of the build.oldLabel - Label from previous successful build.
protected java.lang.String getSvnRevision()
throws java.io.IOException
java.io.IOExceptionpublic boolean isValidLabel(java.lang.String label)
LabelIncrementerLabelIncrementer
isValidLabel in interface LabelIncrementerlabel - user-supplied label
public void setWorkingCopyPath(java.lang.String path)
public java.lang.String getLabelPrefix()
public void setLabelPrefix(java.lang.String labelPrefix)
public java.lang.String getDefaultLabel()
LabelIncrementer
getDefaultLabel in interface LabelIncrementerpublic java.lang.String getSeparator()
public void setSeparator(java.lang.String separator)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||