net.sourceforge.cruisecontrol.bootstrappers
Class MercurialBootstrapper

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

public class MercurialBootstrapper
extends java.lang.Object
implements Bootstrapper

The MercurialBootstrapper will handle updating the local working repository before the build begins.

Author:
Jerome Lacoste
See Also:
Mercurial web site, Serialized Form

Constructor Summary
MercurialBootstrapper()
           
 
Method Summary
 void bootstrap()
          Update from the mercurial repository.
 void setLocalWorkingCopy(java.lang.String localWorkingCopy)
          Sets the local working copy to use when making calls to Mercurial.
 void validate()
          This method validates that at least the filename or the local working copy location has been specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MercurialBootstrapper

public MercurialBootstrapper()
Method Detail

setLocalWorkingCopy

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

Parameters:
localWorkingCopy - String indicating the relative or absolute path to the local working copy of the Mercurial repository on which to execute the update command.

validate

public void validate()
              throws CruiseControlException
This method validates that at least the filename or the local working copy location has been specified.

Specified by:
validate in interface Bootstrapper
Throws:
CruiseControlException - Thrown when the repository location and the local working copy location are both null

bootstrap

public void bootstrap()
               throws CruiseControlException
Update from the mercurial repository.

Specified by:
bootstrap in interface Bootstrapper
Throws:
CruiseControlException