Package hudson.scm.subversion
Class UpdateUpdater.TaskImpl
- java.lang.Object
-
- hudson.scm.subversion.WorkspaceUpdater.UpdateTask
-
- hudson.scm.subversion.UpdateUpdater.TaskImpl
-
- All Implemented Interfaces:
Serializable
,org.jenkinsci.remoting.SerializableOnlyOverRemoting
- 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, clientManager, listener, location, manager, quietOperation, revisions, timestamp, ws
-
-
Constructor Summary
Constructors Constructor Description TaskImpl(int workspaceFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected hudson.scm.subversion.UpdateUpdater.SvnCommandToUse
getSvnCommandToUse()
Returns whether we can do a "svn update" or a "svn switch" or a "svn checkout"List<SubversionSCM.External>
perform()
Performs the checkout/update.protected void
preUpdate(SubversionSCM.ModuleLocation module, 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, getSvnDepth
-
-
-
-
Method Detail
-
getSvnCommandToUse
protected hudson.scm.subversion.UpdateUpdater.SvnCommandToUse getSvnCommandToUse() throws IOException
Returns whether we can do a "svn update" or a "svn switch" or a "svn checkout"- Throws:
IOException
-
perform
public List<SubversionSCM.External> perform() throws IOException, 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 classWorkspaceUpdater.UpdateTask
- Returns:
- Where svn:external mounting happened. Can be empty but never null.
- Throws:
IOException
InterruptedException
-
preUpdate
protected void preUpdate(SubversionSCM.ModuleLocation module, File local) throws org.tmatesoft.svn.core.SVNException, 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
IOException
-
-