Package org.tmatesoft.svn.core.wc2
Class SvnCleanup
- java.lang.Object
-
- org.tmatesoft.svn.core.wc2.SvnOperation<java.lang.Void>
-
- 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.Targetshould 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 throwsSVNExceptionif one of the following is true:- exception with
SVNErrorCode.ILLEGAL_TARGETerror code - iftargetis URL - exception with
SVNErrorCode.WC_NOT_WORKING_COPYerror code - iftargetis not under version control
- Version:
- 1.7
- Author:
- TMate Software Ltd.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSvnCleanup(SvnOperationFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisBreakLocks()booleanisChangesWorkingCopy()Gets whether the operation changes working copybooleanisDeleteWCProperties()Gets whether or not DAV specific"svn:wc:"properties should be removed from the working copybooleanisIncludeExternals()booleanisRemoveIgnoredItems()booleanisRemoveUnversionedItems()booleanisVacuumPristines()voidsetBreakLocks(boolean breakLocks)voidsetDeleteWCProperties(boolean deleteWCProperties)Sets whether or not DAV specific"svn:wc:"properties should be removed from the working copyvoidsetIncludeExternals(boolean includeExternals)voidsetRemoveIgnoredItems(boolean removeIgnoredItems)voidsetRemoveUnversionedItems(boolean removeUnversionedItems)voidsetVacuumPristines(boolean vacuumPristines)-
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, getSqliteJournalMode, getTargets, hasFileTargets, hasLocalTargets, hasRemoteTargets, initDefaults, isCancelled, isSleepForTimestamp, isUseParentWcFormat, needsHomohenousTargets, run, setApplicalbeChangelists, setDepth, setRevision, setSingleTarget, setSleepForTimestamp, setSqliteJournalMode
-
-
-
-
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:
trueif properties will be removed, otherwisefalse
-
setDeleteWCProperties
public void setDeleteWCProperties(boolean deleteWCProperties)
Sets whether or not DAV specific"svn:wc:"properties should be removed from the working copy- Parameters:
deleteWCProperties-trueif properties will be removed, otherwisefalse
-
isVacuumPristines
public boolean isVacuumPristines()
-
setVacuumPristines
public void setVacuumPristines(boolean vacuumPristines)
-
isRemoveUnversionedItems
public boolean isRemoveUnversionedItems()
-
setRemoveUnversionedItems
public void setRemoveUnversionedItems(boolean removeUnversionedItems)
-
isRemoveIgnoredItems
public boolean isRemoveIgnoredItems()
-
setRemoveIgnoredItems
public void setRemoveIgnoredItems(boolean removeIgnoredItems)
-
isIncludeExternals
public boolean isIncludeExternals()
-
setIncludeExternals
public void setIncludeExternals(boolean includeExternals)
-
setBreakLocks
public void setBreakLocks(boolean breakLocks)
-
isBreakLocks
public boolean isBreakLocks()
-
isChangesWorkingCopy
public boolean isChangesWorkingCopy()
Gets whether the operation changes working copy- Overrides:
isChangesWorkingCopyin classSvnOperation<java.lang.Void>- Returns:
trueif the operation changes the working copy, otherwisefalse
-
-