| java.lang.Object net.sourceforge.cruisecontrol.labelincrementers.P4ChangelistLabelIncrementer
P4ChangelistLabelIncrementer | public class P4ChangelistLabelIncrementer implements LabelIncrementer(Code) | | This class uses the most current changelist of the user in Perforce as the
label for the builds. It can also sync the Perforce managed files to that
changelist number, as well as clean out the existing managed files.
author: Matt Albrecht |
Inner Class :protected static interface P4CmdParser | |
Inner Class :protected static class P4CmdParserAdapter implements P4CmdParser | |
Inner Class :protected static class ParseChangelistNumbers extends P4CmdParserAdapter | |
Inner Class :protected static class ParseOutputParam extends P4CmdParserAdapter | |
createProject | protected Project createProject()(Code) | | |
getDefaultLabel | public String getDefaultLabel()(Code) | | The instance must be fully initialized before calling this method.
throws: IllegalStateException - if the instance is not properly initialized |
incrementLabel | public String incrementLabel(String oldLabel, Element buildLog)(Code) | | Retrieves the current changelist, or, if given, the specified changelist,
and also performs any necessary actions the user requested.
Parameters: oldLabel - Label from previous successful build. Label to use for most recent successful build. |
isPreBuildIncrementer | public boolean isPreBuildIncrementer()(Code) | | |
isValidLabel | public boolean isValidLabel(String label)(Code) | | Verify that the label specified -- the previous label -- is a valid label.
In this case any label is valid because the next label will not be based on
previous label but on information from Perforce.
|
setChangelist | public void setChangelist(int syncChange)(Code) | | Set the changelist number that you want to build at. If this isn't
set, then the class will get the most current submitted changelist
number. Note that setting this will cause the build to ALWAYS build
at this changelist number.
Parameters: syncChange - the changelist number to perform the sync to. |
setClean | public void setClean(boolean b)(Code) | | Perform a "p4 sync -f [view]#0" before syncing anew. This will force
the sync to happen.
Parameters: b - |
setDelete | public void setDelete(boolean b)(Code) | | Perform a recursive delete of the clientspec view. This
will force a clean & sync. Note that this can potentially
be very destructive, so use with the utmost caution.
Parameters: b - |
setNoSync | public void setNoSync(boolean b)(Code) | | Disables the label incrementer from synchronizing Perforce to the
view.
Parameters: b - |
|
|