|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.cruisecontrol.bootstrappers.CVSBootstrapper
public class CVSBootstrapper
Since we rely on our build.xml to handle updating our source code, there has always been a problem with what happens when the build.xml file itself changes. Previous workarounds have included writing a wrapper build.xml that will check out the "real" build.xml. This class is a substitute for that practice. The CVSBootstrapper will handle updating a single file from CVS before the build begins. Usage: <cvsbootstrapper cvsroot="" file=""/>
| Constructor Summary | |
|---|---|
CVSBootstrapper()
|
|
| Method Summary | |
|---|---|
void |
bootstrap()
Update the specified file. |
protected Commandline |
buildUpdateCommand()
|
void |
setCompression(java.lang.String level)
Sets the compression level used for the call to cvs, corresponding to the "-z" command line parameter. |
void |
setCvsroot(java.lang.String cvsroot)
|
void |
setFile(java.lang.String filename)
|
void |
setLocalWorkingCopy(java.lang.String local)
Sets the local working copy to use when making calls to CVS. |
void |
setOverwriteChanges(boolean overwrite)
|
void |
setResetStickyTags(boolean reset)
|
void |
validate()
Called after the configuration is read to make sure that all the mandatory parameters were specified.. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CVSBootstrapper()
| Method Detail |
|---|
public void setCvsroot(java.lang.String cvsroot)
public void setFile(java.lang.String filename)
public void setLocalWorkingCopy(java.lang.String local)
local - String relative or absolute path to the local working copy of the CVS module which contains the target
file.
public void bootstrap()
throws CruiseControlException
bootstrap in interface BootstrapperCruiseControlException
public void validate()
throws CruiseControlException
Bootstrapper
validate in interface BootstrapperCruiseControlException - if there was a configuration error.
protected Commandline buildUpdateCommand()
throws CruiseControlException
CruiseControlExceptionpublic void setResetStickyTags(boolean reset)
public void setOverwriteChanges(boolean overwrite)
public void setCompression(java.lang.String level)
level - Valid levels are 1 (high speed, low compression) to 9 (low speed, high compression), or 0 to disable
compression.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||