|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.cruisecontrol.bootstrappers.ClearCaseViewstrapper
This class allows you to start up ClearCase dynamic views and mount VOBs before you initiate your build. If your view has been stopped, a VOB unmounted or your machine rebooted, the likelihood is that your build will fail when using dynamic views. The class therefore allows you to specify a viewpath, from which it works out the view tag and starts it, optionally you can specify voblist, a comma separated list of VOBs to mount. The reason a viewpath is used rather than just the view path is that you can reuse a CruiseControl property which defines the source of your build. You should always specify the viewpath via the root location, i.e. M:\... on Windows or /view/... on Unix Usage: <clearcaseviewstrapper viewpath="M:\dynamic_view\some_vob\src" voblist="\SourceVOB,\ReleaseVOB"/%gt;
Constructor Summary | |
ClearCaseViewstrapper()
|
Method Summary | |
void |
bootstrap()
Perform the bootstrapping. |
protected Commandline |
buildMountVOBCommand(java.lang.String vob)
|
protected Commandline |
buildStartViewCommand()
|
protected boolean |
isWindows()
|
void |
setViewpath(java.lang.String path)
set the path to the view to be started |
void |
setVoblist(java.lang.String list)
set the list of VOBs to mount, the list is comma separated |
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 ClearCaseViewstrapper()
Method Detail |
public void setViewpath(java.lang.String path)
path
- path to view to be startedpublic void setVoblist(java.lang.String list)
list
- comma separated list of VOBs to mountpublic void bootstrap() throws CruiseControlException
Bootstrapper
bootstrap
in interface Bootstrapper
CruiseControlException
- if bootstrap failspublic void validate() throws CruiseControlException
Bootstrapper
validate
in interface Bootstrapper
CruiseControlException
- if there was a configuration error.protected Commandline buildStartViewCommand()
protected Commandline buildMountVOBCommand(java.lang.String vob)
protected boolean isWindows()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |