hudson.scm.subversion
Class WorkspaceUpdater.UpdateTask

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

public abstract static class WorkspaceUpdater.UpdateTask
extends java.lang.Object
implements java.io.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
 org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider authProvider
          Encapusulates the authentication.
 hudson.model.TaskListener listener
          Connected to build console.
 SubversionSCM.ModuleLocation[] locations
          Modules to check out.
 org.tmatesoft.svn.core.wc.SVNClientManager manager
          Factory for various subversion commands.
 RevisionParameterAction revisions
          If the build parameter is specified with specific version numbers, this field captures that.
 java.util.Date timestamp
          In the absence of a revision-specific check out, we want to check out by this timestamp, not just the latest to ensure consistency.
 java.io.File ws
          Build workspace.
 
Constructor Summary
WorkspaceUpdater.UpdateTask()
           
 
Method Summary
protected  java.util.List<SubversionSCM.External> delegateTo(WorkspaceUpdater.UpdateTask t)
           
protected  java.util.List<SubversionSCM.External> delegateTo(WorkspaceUpdater wu)
          Delegates the execution to another updater.
protected  org.tmatesoft.svn.core.wc.SVNRevision getRevision(SubversionSCM.ModuleLocation l)
          Determines the revision to check out for the given location.
abstract  java.util.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

manager

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


authProvider

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


timestamp

public java.util.Date timestamp
In the absence of a revision-specific check out, we want to check out by this timestamp, not just the latest to ensure consistency. Never null.


listener

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


locations

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


ws

public java.io.File ws
Build workspace. Never null.


revisions

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

Constructor Detail

WorkspaceUpdater.UpdateTask

public WorkspaceUpdater.UpdateTask()
Method Detail

perform

public abstract java.util.List<SubversionSCM.External> perform()
                                                        throws java.io.IOException,
                                                               java.lang.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:
java.io.IOException
java.lang.InterruptedException

delegateTo

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

delegateTo

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

Throws:
java.io.IOException
java.lang.InterruptedException

getRevision

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



Copyright © 2011. All Rights Reserved.