net.sourceforge.cruisecontrol.bootstrappers
Class CVSBootstrapper

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

public class CVSBootstrapper
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 CVSBootstrapper will handle updating a single file from CVS before the build begins. Usage: <cvsbootstrapper cvsroot="" file=""/>

See Also:
Serialized Form

Constructor Summary
CVSBootstrapper()
           
 
Method Summary
 void bootstrap()
          Update the specified file.
protected  Commandline buildUpdateCommand()
           
 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

CVSBootstrapper

public CVSBootstrapper()
Method Detail

setCvsroot

public void setCvsroot(java.lang.String cvsroot)

setFile

public void setFile(java.lang.String filename)

setLocalWorkingCopy

public void setLocalWorkingCopy(java.lang.String local)
Sets the local working copy to use when making calls to CVS.

Parameters:
local - String relative or absolute path to the local working copy of the CVS module which contains the target file.

bootstrap

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

Specified by:
bootstrap in interface Bootstrapper
Throws:
CruiseControlException

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()
                                  throws CruiseControlException
Throws:
CruiseControlException

setResetStickyTags

public void setResetStickyTags(boolean reset)

setOverwriteChanges

public void setOverwriteChanges(boolean overwrite)