| net.sourceforge.cruisecontrol.LabelIncrementer
All known Subclasses: net.sourceforge.cruisecontrol.labelincrementers.DefaultLabelIncrementer, net.sourceforge.cruisecontrol.labelincrementers.SVNLabelIncrementer, net.sourceforge.cruisecontrol.labelincrementers.PropertyFileLabelIncrementer, net.sourceforge.cruisecontrol.labelincrementers.P4ChangelistLabelIncrementer, net.sourceforge.cruisecontrol.labelincrementers.FormattedLabelIncrementer, net.sourceforge.cruisecontrol.labelincrementers.EmptyLabelIncrementer,
LabelIncrementer | public interface LabelIncrementer extends Serializable(Code) | | This interface defines the method required to increment
the label used in the MasterBuild process. This label
is incorporated into the log filename when a successful
build occurs.
author: alden almagro author: Paul Julius |
Method Summary | |
String | getDefaultLabel() Called by Project when there is no previously serialized label. | String | incrementLabel(String oldLabel, Element buildLog) Increments the label when a successful build occurs.
The oldLabel should be transformed and returned as
the new label. | 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(String label) |
getDefaultLabel | String getDefaultLabel()(Code) | | Called by Project when there is no previously serialized label.
defaultLabel |
incrementLabel | String incrementLabel(String oldLabel, Element buildLog)(Code) | | Increments the label when a successful build occurs.
The oldLabel should be transformed and returned as
the new label. The build log is also passed in so that some
more complex label incrementing can be handled. For example, a
label incrementer could find the ant target that was called and increment based on that
information.
Parameters: buildLog - JDOM Element representation of the build. Parameters: oldLabel - Label from previous successful build. Label to use for most recent successful build. |
isPreBuildIncrementer | boolean isPreBuildIncrementer()(Code) | | Some implementations of LabelIncrementer , 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.
|
isValidLabel | boolean isValidLabel(String label)(Code) | | Check the validity of a user-supplied label, making sure that it can be incremented successfully by
the appropriate implementation of LabelIncrementer
Parameters: label - user-supplied label true if it is a valid label. |
|
|