hudson.scm.subversion
Class WorkspaceUpdater.UpdateTask

java.lang.Object
  extended by hudson.scm.subversion.WorkspaceUpdater.UpdateTask
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CheckoutUpdater.UpdateTaskImpl, SwitchUpdater.TaskImpl, UpdateUpdater.TaskImpl
Enclosing class:
WorkspaceUpdater

public abstract static class WorkspaceUpdater.UpdateTask
extends Object
implements Serializable

This object gets instantiated on the master and then sent to the slave via remoting, then used to perform the actual checkout activity.

A number of contextual objects are defined as fields, to be used by the perform() method. These fields are set by SubversionSCM before the invocation.

See Also:
Serialized Form

Field Summary
protected  org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider authProvider
          Encapusulates the authentication.
protected  Date buildTime
          When the build was started.
protected  hudson.model.TaskListener listener
          Connected to build console.
protected  SubversionSCM.ModuleLocation[] locations
          Modules to check out.
protected  org.tmatesoft.svn.core.wc.SVNClientManager manager
          Factory for various subversion commands.
protected  Date queueTime
          When the build was scheduled.
protected  RevisionParameterAction revisionParameterAction
          If the build parameter is specified with specific version numbers, this field captures that.
protected  SubversionSCM.RevisionPolicy revisionPolicy
          Global defined revision policy.
protected static String SVN_CANCEL_EXCEPTION_MESSAGE
           
protected  File ws
          Build workspace.
 
Constructor Summary
WorkspaceUpdater.UpdateTask()
           
 
Method Summary
protected  List<SubversionSCM.External> delegateTo(WorkspaceUpdater.UpdateTask t)
           
protected  List<SubversionSCM.External> delegateTo(WorkspaceUpdater wu)
          Delegates the execution to another updater.
protected  org.tmatesoft.svn.core.wc.SVNRevision getRevision(SubversionSCM.ModuleLocation location)
          Determines the revision to check out for the given location.
protected static org.tmatesoft.svn.core.SVNDepth getSvnDepth(String name)
          Returns SVNDepth by string value.
abstract  List<SubversionSCM.External> perform()
          Performs the checkout/update.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SVN_CANCEL_EXCEPTION_MESSAGE

protected static final String SVN_CANCEL_EXCEPTION_MESSAGE
See Also:
Constant Field Values

manager

protected org.tmatesoft.svn.core.wc.SVNClientManager manager
Factory for various subversion commands.


authProvider

protected org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider authProvider
Encapusulates the authentication. Connected back to Hudson master. Never null.


queueTime

protected Date queueTime
When the build was scheduled.


buildTime

protected Date buildTime
When the build was started.


listener

protected hudson.model.TaskListener listener
Connected to build console. Never null.


locations

protected SubversionSCM.ModuleLocation[] locations
Modules to check out. Never null.


ws

protected File ws
Build workspace. Never null.


revisionParameterAction

protected RevisionParameterAction revisionParameterAction
If the build parameter is specified with specific version numbers, this field captures that. Can be null.


revisionPolicy

protected SubversionSCM.RevisionPolicy revisionPolicy
Global defined revision policy.

Constructor Detail

WorkspaceUpdater.UpdateTask

public WorkspaceUpdater.UpdateTask()
Method Detail

perform

public abstract List<SubversionSCM.External> perform()
                                              throws IOException,
                                                     InterruptedException
Performs the checkout/update.

Use the fields defined in this class that defines the parameters of the check out.

Returns:
Where svn:external mounting happened. Can be empty but never null.
Throws:
IOException
InterruptedException

delegateTo

protected List<SubversionSCM.External> delegateTo(WorkspaceUpdater.UpdateTask t)
                                           throws IOException,
                                                  InterruptedException
Throws:
IOException
InterruptedException

delegateTo

protected final List<SubversionSCM.External> delegateTo(WorkspaceUpdater wu)
                                                 throws IOException,
                                                        InterruptedException
Delegates the execution to another updater. This is most often useful to fall back to the fresh check out by using CheckoutUpdater.

Throws:
IOException
InterruptedException

getRevision

protected org.tmatesoft.svn.core.wc.SVNRevision getRevision(SubversionSCM.ModuleLocation location)
Determines the revision to check out for the given location.


getSvnDepth

protected static org.tmatesoft.svn.core.SVNDepth getSvnDepth(String name)
Returns SVNDepth by string value.

Returns:
SVNDepth value.


Copyright © 2004-2013 Hudson. All Rights Reserved.