Package org.tmatesoft.svn.core.wc2
Class SvnRemoteMkDir
java.lang.Object
org.tmatesoft.svn.core.wc2.SvnOperation<SVNCommitInfo>
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
Creates directory(ies) in a repository.
All
targets should be URLs, representing repository locations to be created.
URLs can be from multiple repositories.
If non-null, revisionProperties holds additional, custom revision
properties (String names mapped to SVNPropertyValue
values) to be set on the new revision. This table cannot contain any
standard Subversion properties.
commitHandler will be asked for a commit log message.
If the caller's event handler is not null and if the commit succeeds, the handler
will be called with SVNEventAction.COMMIT_COMPLETED event action.
SvnOperation.run() method returns SVNCommitInfo information on a new revision as the result of the commit.
SvnOperation.run() throws SVNException in the following cases:
-
exception with
SVNErrorCode.RA_ILLEGAL_URL error code
- if cannot compute common root url for targets,
targets can refer to different repositories
exception with SVNErrorCode.CLIENT_PROPERTY_NAME error code
- if there is standard Subversion property among revision properties
exception with SVNErrorCode.FS_NOT_FOUND error code
- if some of the targets does not exist
- Version:
- 1.7
- Author:
- TMate Software Ltd.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intbooleanGets whether the operation changes working copybooleanReturns whether to create all non-existent parent directoriesvoidsetMakeParents(boolean makeParents) Sets whether to create all non-existent parent directoriesMethods inherited from class org.tmatesoft.svn.core.wc2.AbstractSvnCommit
getCommitHandler, getCommitMessage, getRevisionProperties, setCommitHandler, setCommitMessage, setRevisionProperties, setRevisionPropertyMethods inherited from class org.tmatesoft.svn.core.wc2.SvnReceivingOperation
first, getReceiver, initDefaults, last, receive, run, setReceiverMethods 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 Details
-
SvnRemoteMkDir
-
-
Method Details
-
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
-