net.sourceforge.cruisecontrol.bootstrappers
Class GitBootstrapper

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

public class GitBootstrapper
extends java.lang.Object
implements Bootstrapper

The GitBootstrapper will handle updating a git repository before the build begins.

Author:
Robert Schiele
See Also:
git.or.cz, Serialized Form

Constructor Summary
GitBootstrapper()
           
 
Method Summary
 void bootstrap()
          Update the git repository.
 void setLocalWorkingCopy(java.lang.String d)
          Sets the local working copy to use when making calls to git.
 void validate()
          This method validates that 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

GitBootstrapper

public GitBootstrapper()
Method Detail

setLocalWorkingCopy

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

Parameters:
d - String indicating the relative or absolute path to the local working copy of the git repository on which to execute the pull command.

validate

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

Specified by:
validate in interface Bootstrapper
Throws:
CruiseControlException - Thrown when the local working copy location is null

bootstrap

public void bootstrap()
               throws CruiseControlException
Update the git repository.

Specified by:
bootstrap in interface Bootstrapper
Throws:
CruiseControlException