net.sourceforge.cruisecontrol.bootstrappers
Class SVNBootstrapper

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

public class SVNBootstrapper
extends java.lang.Object
implements Bootstrapper

The SVNBootstrapper will handle updating a single file from Subversion before the build begins.

Author:
Etienne Studer
See Also:
subversion.tigris.org, Serialized Form

Constructor Summary
SVNBootstrapper()
           
 
Method Summary
 void bootstrap()
          Update the specified file from the subversion repository.
 void setFile(java.lang.String fileName)
          Sets the file to update from the Subversion repository.
 void setLocalWorkingCopy(java.lang.String localWorkingCopy)
          Sets the local working copy to use when making calls to Subversion.
 void setPassword(java.lang.String password)
          Sets the password for authentication.
 void setUsername(java.lang.String userName)
          Sets the username for authentication.
 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

SVNBootstrapper

public SVNBootstrapper()
Method Detail

setFile

public void setFile(java.lang.String fileName)
Sets the file to update from the Subversion repository.


setLocalWorkingCopy

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

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

setUsername

public void setUsername(java.lang.String userName)
Sets the username for authentication.


setPassword

public void setPassword(java.lang.String password)
Sets the password for authentication.


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 the specified file from the subversion repository.

Specified by:
bootstrap in interface Bootstrapper
Throws:
CruiseControlException