Package org.tmatesoft.svn.core.wc2
Class SvnRemoteMkDir
- java.lang.Object
-
- org.tmatesoft.svn.core.wc2.SvnOperation<T>
-
- org.tmatesoft.svn.core.wc2.SvnReceivingOperation<SVNCommitInfo>
-
- org.tmatesoft.svn.core.wc2.AbstractSvnCommit
-
- org.tmatesoft.svn.core.wc2.SvnRemoteMkDir
-
- All Implemented Interfaces:
ISvnObjectReceiver<SVNCommitInfo>,ISvnOperationOptionsProvider
public class SvnRemoteMkDir extends AbstractSvnCommit
Creates directory(ies) in a repository. Alltargetsshould be URLs, representing repository locations to be created. URLs can be from multiple repositories. If non-null,revisionPropertiesholds additional, custom revision properties (Stringnames mapped toSVNPropertyValuevalues) to be set on the new revision. This table cannot contain any standard Subversion properties.commitHandlerwill be asked for a commit log message. If the caller'sevent handleris notnulland if the commit succeeds, the handler will be called withSVNEventAction.COMMIT_COMPLETEDevent action.SvnOperation.run()method returnsSVNCommitInfoinformation on a new revision as the result of the commit.SvnOperation.run()throwsSVNExceptionin the following cases:-
exception with
SVNErrorCode.RA_ILLEGAL_URLerror code - if cannot compute common root url fortargets,targetscan refer to different repositories exception withSVNErrorCode.CLIENT_PROPERTY_NAMEerror code - if there is standard Subversion property among revision properties exception withSVNErrorCode.FS_NOT_FOUNDerror code - if some of thetargetsdoes not exist- Version:
- 1.7
- Author:
- TMate Software Ltd.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSvnRemoteMkDir(SvnOperationFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetMaximumTargetsCount()booleanisChangesWorkingCopy()Gets whether the operation changes working copybooleanisMakeParents()Returns whether to create all non-existent parent directoriesvoidsetMakeParents(boolean makeParents)Sets whether to create all non-existent parent directories-
Methods inherited from class org.tmatesoft.svn.core.wc2.AbstractSvnCommit
getCommitHandler, getCommitMessage, getRevisionProperties, setCommitHandler, setCommitMessage, setRevisionProperties, setRevisionProperty
-
Methods inherited from class org.tmatesoft.svn.core.wc2.SvnReceivingOperation
first, getReceiver, initDefaults, last, receive, run, setReceiver
-
Methods inherited from class org.tmatesoft.svn.core.wc2.SvnOperation
addTarget, cancel, ensureArgumentsAreValid, ensureEnoughTargets, ensureHomohenousTargets, getApplicableChangelists, getAuthenticationManager, getCanceller, getDepth, getEventHandler, getFirstTarget, getMinimumTargetsCount, getOperationalWorkingCopy, getOperationFactory, getOptions, getRepositoryPool, getRevision, getSqliteJournalMode, getTargets, hasFileTargets, hasLocalTargets, hasRemoteTargets, isCancelled, isSleepForTimestamp, isUseParentWcFormat, needsHomohenousTargets, run, setApplicalbeChangelists, setDepth, setRevision, setSingleTarget, setSleepForTimestamp, setSqliteJournalMode
-
-
-
-
Constructor Detail
-
SvnRemoteMkDir
protected SvnRemoteMkDir(SvnOperationFactory factory)
-
-
Method Detail
-
isMakeParents
public boolean isMakeParents()
Returns whether to create all non-existent parent directories- Returns:
trueif the non-existent parent directories should be created, otherwisefalse
-
setMakeParents
public void setMakeParents(boolean makeParents)
Sets whether to create all non-existent parent directories- Parameters:
makeParents-trueif the non-existent parent directories should be created, otherwisefalse
-
getMaximumTargetsCount
protected int getMaximumTargetsCount()
- Overrides:
getMaximumTargetsCountin classSvnOperation<SVNCommitInfo>
-
isChangesWorkingCopy
public boolean isChangesWorkingCopy()
Gets whether the operation changes working copy- Overrides:
isChangesWorkingCopyin classSvnOperation<SVNCommitInfo>- Returns:
trueif the operation changes the working copy, otherwisefalse
-
-