org.tmatesoft.svn.core.wc2
Class SvnCleanup

java.lang.Object
  extended by org.tmatesoft.svn.core.wc2.SvnOperation<java.lang.Void>
      extended by org.tmatesoft.svn.core.wc2.SvnCleanup
All Implemented Interfaces:
ISvnOperationOptionsProvider

public class SvnCleanup
extends SvnOperation<java.lang.Void>

Represents cleanup operation. Recursively cleans up the working copy, removing locks and resuming unfinished operations. Target should represent working copy path.

If you ever get a "working copy locked" error, use this method to remove stale locks and get your working copy into a usable state again.

This method operates only on working copies and does not open any network connection.

SvnOperation.run() method throws SVNException if one of the following is true:


Constructor Summary
protected SvnCleanup(SvnOperationFactory factory)
           
 
Method Summary
 boolean isChangesWorkingCopy()
          Gets whether the operation changes working copy
 boolean isDeleteWCProperties()
          Gets whether or not DAV specific "svn:wc:" properties should be removed from the working copy
 void setDeleteWCProperties(boolean deleteWCProperties)
          Sets whether or not DAV specific "svn:wc:" properties should be removed from the working copy
 
Methods inherited from class org.tmatesoft.svn.core.wc2.SvnOperation
addTarget, cancel, ensureArgumentsAreValid, ensureEnoughTargets, ensureHomohenousTargets, getApplicableChangelists, getAuthenticationManager, getCanceller, getDepth, getEventHandler, getFirstTarget, getMaximumTargetsCount, getMinimumTargetsCount, getOperationalWorkingCopy, getOperationFactory, getOptions, getRepositoryPool, getRevision, getTargets, hasFileTargets, hasLocalTargets, hasRemoteTargets, initDefaults, isCancelled, isSleepForTimestamp, isUseParentWcFormat, needsHomohenousTargets, run, setApplicalbeChangelists, setDepth, setRevision, setSingleTarget, setSleepForTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SvnCleanup

protected SvnCleanup(SvnOperationFactory factory)
Method Detail

isDeleteWCProperties

public boolean isDeleteWCProperties()
Gets whether or not DAV specific "svn:wc:" properties should be removed from the working copy

Returns:
true if properties will be removed, otherwise false

setDeleteWCProperties

public void setDeleteWCProperties(boolean deleteWCProperties)
Sets whether or not DAV specific "svn:wc:" properties should be removed from the working copy

Parameters:
deleteWCProperties - true if properties will be removed, otherwise false

isChangesWorkingCopy

public boolean isChangesWorkingCopy()
Gets whether the operation changes working copy

Overrides:
isChangesWorkingCopy in class SvnOperation<java.lang.Void>
Returns:
true if the operation changes the working copy, otherwise false