net.sourceforge.cruisecontrol.bootstrappers
Class ClearCaseBootstrapper

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.bootstrappers.ClearCaseBootstrapper
All Implemented Interfaces:
Bootstrapper, java.io.Serializable

public class ClearCaseBootstrapper
extends java.lang.Object
implements Bootstrapper

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 ClearCaseBootstrapper will handle updating a single file from ClearCase before the build begins. Usage: <clearcasebootstrapper file="" viewpath=""/>

See Also:
Serialized Form

Constructor Summary
ClearCaseBootstrapper()
           
 
Method Summary
 void bootstrap()
          Update the specified file.
protected  Commandline buildUpdateCommand()
           
protected  java.lang.String getOsName()
           
protected  boolean isWindows()
           
 void setFile(java.lang.String name)
           
 void setViewpath(java.lang.String path)
           
 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

ClearCaseBootstrapper

public ClearCaseBootstrapper()
Method Detail

setViewpath

public void setViewpath(java.lang.String path)

setFile

public void setFile(java.lang.String name)

bootstrap

public void bootstrap()
               throws CruiseControlException
Update the specified file.

Specified by:
bootstrap in interface Bootstrapper
Throws:
CruiseControlException - if bootstrap fails

validate

public void validate()
              throws CruiseControlException
Description copied from interface: Bootstrapper
Called after the configuration is read to make sure that all the mandatory parameters were specified..

Specified by:
validate in interface Bootstrapper
Throws:
CruiseControlException - if there was a configuration error.

buildUpdateCommand

protected Commandline buildUpdateCommand()

isWindows

protected boolean isWindows()

getOsName

protected java.lang.String getOsName()