|
||||||||||
| 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()
start the specified view and VOBs. |
protected Commandline |
buildListVOBCommand(java.lang.String f)
build a command line to list (ls) a file/folder |
protected Commandline |
buildMountVOBCommand(java.lang.String vob)
build a command line for starting a VOB |
protected Commandline |
buildStartViewCommand()
build a command line for starting the view |
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()
check whether the appropriate attributes have been set |
| 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 mount
public void bootstrap()
throws CruiseControlException
bootstrap in interface BootstrapperCruiseControlException - if bootstrap fails
public void validate()
throws CruiseControlException
validate in interface BootstrapperCruiseControlException - if there was a configuration error.protected Commandline buildStartViewCommand()
protected Commandline buildMountVOBCommand(java.lang.String vob)
protected Commandline buildListVOBCommand(java.lang.String f)
protected boolean isWindows()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||