hudson.scm.subversion
Class UpdateUpdater.TaskImpl

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

public static class UpdateUpdater.TaskImpl
extends WorkspaceUpdater.UpdateTask

See Also:
Serialized Form

Field Summary
 
Fields inherited from class hudson.scm.subversion.WorkspaceUpdater.UpdateTask
authProvider, listener, locations, manager, revisions, timestamp, ws
 
Constructor Summary
UpdateUpdater.TaskImpl()
           
 
Method Summary
protected  boolean isUpdatable()
          Returns true if we can use "svn update" instead of "svn checkout"
 java.util.List<SubversionSCM.External> perform()
          Performs the checkout/update.
protected  void preUpdate(SubversionSCM.ModuleLocation module, java.io.File local)
          Hook for subtype to perform some cleanup activity before "svn update" takes place.
 
Methods inherited from class hudson.scm.subversion.WorkspaceUpdater.UpdateTask
delegateTo, delegateTo, getRevision
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateUpdater.TaskImpl

public UpdateUpdater.TaskImpl()
Method Detail

isUpdatable

protected boolean isUpdatable()
                       throws java.io.IOException
Returns true if we can use "svn update" instead of "svn checkout"

Throws:
java.io.IOException

perform

public java.util.List<SubversionSCM.External> perform()
                                               throws java.io.IOException,
                                                      java.lang.InterruptedException
Description copied from class: WorkspaceUpdater.UpdateTask
Performs the checkout/update.

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

Specified by:
perform in class WorkspaceUpdater.UpdateTask
Returns:
Where svn:external mounting happened. Can be empty but never null.
Throws:
java.io.IOException
java.lang.InterruptedException

preUpdate

protected void preUpdate(SubversionSCM.ModuleLocation module,
                         java.io.File local)
                  throws org.tmatesoft.svn.core.SVNException,
                         java.io.IOException
Hook for subtype to perform some cleanup activity before "svn update" takes place.

Parameters:
module - Remote repository that corresponds to the workspace.
local - Local directory that gets the update from the module.
Throws:
org.tmatesoft.svn.core.SVNException
java.io.IOException


Copyright © 2011. All Rights Reserved.