Package org.tmatesoft.svn.cli.svn
Class SVNCommandEnvironment
java.lang.Object
org.tmatesoft.svn.cli.AbstractSVNCommandEnvironment
org.tmatesoft.svn.cli.svn.SVNCommandEnvironment
- All Implemented Interfaces:
ISVNCanceller
,ISVNCommitHandler
public class SVNCommandEnvironment
extends AbstractSVNCommandEnvironment
implements ISVNCommitHandler
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final java.lang.String
private java.lang.String
private java.lang.String
private java.util.Collection
private java.lang.String
private java.util.Map
private SVNConflictStats
private SVNDepth
private java.lang.String
private java.lang.String
private java.lang.String
private SVNRevision
private java.util.Collection
private byte[]
private java.lang.String
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private java.util.EnumSet<SVNCertificateFailureKind>
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private long
private java.lang.String
private java.lang.String
private java.lang.String
private java.lang.String
private java.lang.String
private java.lang.String
private SVNConflictAcceptPolicy
private SVNProperties
private java.util.List
private java.util.Map
private SVNDepth
private java.lang.String
private SVNShowRevisionType
private SVNRevision
private int
private java.util.List
private java.lang.String
Fields inherited from interface org.tmatesoft.svn.core.ISVNCanceller
NULL
-
Constructor Summary
ConstructorsConstructorDescriptionSVNCommandEnvironment
(java.lang.String programName, java.io.PrintStream out, java.io.PrintStream err, java.io.InputStream in) -
Method Summary
Modifier and TypeMethodDescriptionprotected ISVNAuthenticationManager
protected DefaultSVNOptions
private java.lang.String
createCommitMessageTemplate
(SVNCommitItem[] items) java.lang.String
java.lang.String
java.lang.String[]
java.util.Collection
protected java.lang.String
java.lang.String
getCommitMessage
(java.lang.String message, SVNCommitItem[] commitables) Handles the incoming initial log message and items intended for a commit and returns a new commit log message.getDepth()
java.lang.String
java.lang.String
java.lang.String
java.util.Collection
byte[]
long
getLimit()
java.lang.String
java.lang.String
java.lang.String
java.lang.String
java.lang.String
getRevisionProperties
(java.lang.String message, SVNCommitItem[] commitables, SVNProperties revisionProperties) Handles the incoming revision properties and returns filtered revision properties given the paths (represented bycommitables
) collected for committing and the commit log message.java.util.List
java.lang.String
int
protected SVNCommand
java.util.List
void
protected void
initOption
(SVNOptionValue optionValue) protected void
initOptions
(SVNCommandLine commandLine) boolean
boolean
boolean
boolean
isDryRun()
boolean
isForce()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isQuiet()
boolean
boolean
boolean
boolean
isRemove()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isStrict()
boolean
boolean
isUpdate()
boolean
boolean
boolean
boolean
isXML()
private void
parseRevisionProperty
(SVNOptionValue optionValue) protected java.lang.String
refineCommandName
(java.lang.String commandName, SVNCommandLine commandLine) protected void
validateOptions
(SVNCommandLine commandLine) Methods inherited from class org.tmatesoft.svn.cli.AbstractSVNCommandEnvironment
checkCancelled, combineTargets, createClientManager, dispose, getArguments, getClientManager, getCommand, getCommandName, getCommandName, getErr, getIn, getOptions, getOut, getProgramName, getRelativePath, getURLFromTarget, handleError, handleWarning, init, initCommand, isVersioned, parseRevision, popArgument, printCommitInfo, readFromFile, run, setArguments, setCancelled
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
DEFAULT_LOG_MESSAGE_HEADER
private static final java.lang.String DEFAULT_LOG_MESSAGE_HEADER- See Also:
-
myDepth
-
mySetDepth
-
myIsVerbose
private boolean myIsVerbose -
myIsUpdate
private boolean myIsUpdate -
myIsQuiet
private boolean myIsQuiet -
myIsIncremental
private boolean myIsIncremental -
myIsHelp
private boolean myIsHelp -
myIsIgnoreExternals
private boolean myIsIgnoreExternals -
myIsIgnoreKeywords
private boolean myIsIgnoreKeywords -
myIsXML
private boolean myIsXML -
myIsVersion
private boolean myIsVersion -
myChangelist
private java.lang.String myChangelist -
myIsNonInteractive
private boolean myIsNonInteractive -
myIsForceInteractive
private boolean myIsForceInteractive -
myIsNoAuthCache
private boolean myIsNoAuthCache -
myUserName
private java.lang.String myUserName -
myPassword
private java.lang.String myPassword -
myConfigDir
private java.lang.String myConfigDir -
myIsDescend
private boolean myIsDescend -
myIsNoIgnore
private boolean myIsNoIgnore -
myIsRevprop
private boolean myIsRevprop -
myIsStrict
private boolean myIsStrict -
myStartRevision
-
myEndRevision
-
myIsForce
private boolean myIsForce -
myFilePath
private java.lang.String myFilePath -
myFileData
private byte[] myFileData -
myTargets
private java.util.List myTargets -
myEncoding
private java.lang.String myEncoding -
myMessage
private java.lang.String myMessage -
myIsForceLog
private boolean myIsForceLog -
myEditorCommand
private java.lang.String myEditorCommand -
myDiffCommand
private java.lang.String myDiffCommand -
myRevisionProperties
-
myIsNoUnlock
private boolean myIsNoUnlock -
myIsDryRun
private boolean myIsDryRun -
myIsRecordOnly
private boolean myIsRecordOnly -
myIsUseMergeHistory
private boolean myIsUseMergeHistory -
myExtensions
private java.util.Collection myExtensions -
myIsIgnoreAncestry
private boolean myIsIgnoreAncestry -
myIsShowCopiesAsAdds
private boolean myIsShowCopiesAsAdds -
myNativeEOL
private java.lang.String myNativeEOL -
myIsRelocate
private boolean myIsRelocate -
myIsNoAutoProps
private boolean myIsNoAutoProps -
myIsAutoProps
private boolean myIsAutoProps -
myIsKeepChangelist
private boolean myIsKeepChangelist -
myIsParents
private boolean myIsParents -
myIsKeepLocal
private boolean myIsKeepLocal -
myResolveAccept
-
myIsRemove
private boolean myIsRemove -
myNewTarget
private java.lang.String myNewTarget -
myOldTarget
private java.lang.String myOldTarget -
myIsNoticeAncestry
private boolean myIsNoticeAncestry -
myIsSummarize
private boolean myIsSummarize -
myIsNoDiffDeleted
private boolean myIsNoDiffDeleted -
myIsNoDiffAdded
private boolean myIsNoDiffAdded -
myLimit
private long myLimit -
myIsStopOnCopy
private boolean myIsStopOnCopy -
myIsChangeOptionUsed
private boolean myIsChangeOptionUsed -
myIsRevisionOptionUsed
private boolean myIsRevisionOptionUsed -
myIsWithAllRevprops
private boolean myIsWithAllRevprops -
myIsReIntegrate
private boolean myIsReIntegrate -
myIsTrustServerCertificate
private boolean myIsTrustServerCertificate -
myIsTrustServerCertificateFailures
-
myIsAllowMixedRevisions
private boolean myIsAllowMixedRevisions -
myRevisionRanges
private java.util.List myRevisionRanges -
myShowRevsType
-
myChangelists
private java.util.Collection myChangelists -
myAuthorOfInterest
private java.lang.String myAuthorOfInterest -
myRegularExpression
private java.lang.String myRegularExpression -
myConfigOptions
private java.util.Map myConfigOptions -
myServersOptions
private java.util.Map myServersOptions -
myIsGitDiffFormat
private boolean myIsGitDiffFormat -
myIsShowDiff
private boolean myIsShowDiff -
myIsPropertiesOnly
private boolean myIsPropertiesOnly -
myIsIgnoreProperties
private boolean myIsIgnoreProperties -
myIsReverseDiff
private boolean myIsReverseDiff -
myIsIgnoreWhitespace
private boolean myIsIgnoreWhitespace -
myStripCount
private int myStripCount -
myIsShowInhertiedProps
private boolean myIsShowInhertiedProps -
myIsIncludeExternals
private boolean myIsIncludeExternals -
myShowItem
private java.lang.String myShowItem -
myIsNoNewLine
private boolean myIsNoNewLine -
myIsPinExternals
private boolean myIsPinExternals -
myIsRemoveUnversioned
private boolean myIsRemoveUnversioned -
myIsRemoveIgnored
private boolean myIsRemoveIgnored -
myConflictStats
-
-
Constructor Details
-
SVNCommandEnvironment
public SVNCommandEnvironment(java.lang.String programName, java.io.PrintStream out, java.io.PrintStream err, java.io.InputStream in)
-
-
Method Details
-
initClientManager
- Overrides:
initClientManager
in classAbstractSVNCommandEnvironment
- Throws:
SVNException
-
refineCommandName
protected java.lang.String refineCommandName(java.lang.String commandName, SVNCommandLine commandLine) throws SVNException - Specified by:
refineCommandName
in classAbstractSVNCommandEnvironment
- Throws:
SVNException
-
createClientOptions
- Specified by:
createClientOptions
in classAbstractSVNCommandEnvironment
- Throws:
SVNException
-
createClientAuthenticationManager
- Specified by:
createClientAuthenticationManager
in classAbstractSVNCommandEnvironment
-
initOptions
- Overrides:
initOptions
in classAbstractSVNCommandEnvironment
- Throws:
SVNException
-
initOption
- Specified by:
initOption
in classAbstractSVNCommandEnvironment
- Throws:
SVNException
-
getSVNCommand
-
validateOptions
- Overrides:
validateOptions
in classAbstractSVNCommandEnvironment
- Throws:
SVNException
-
getCommandLineClientName
protected java.lang.String getCommandLineClientName()- Specified by:
getCommandLineClientName
in classAbstractSVNCommandEnvironment
-
isReIntegrate
public boolean isReIntegrate() -
getShowRevisionType
-
isChangeOptionUsed
public boolean isChangeOptionUsed() -
isRevisionOptionUsed
public boolean isRevisionOptionUsed() -
getChangelist
public java.lang.String getChangelist() -
getChangelists
public java.lang.String[] getChangelists() -
getChangelistsCollection
public java.util.Collection getChangelistsCollection() -
isIgnoreKeywords
public boolean isIgnoreKeywords() -
getDepth
-
getSetDepth
-
isVerbose
public boolean isVerbose() -
isNoIgnore
public boolean isNoIgnore() -
isUpdate
public boolean isUpdate() -
isQuiet
public boolean isQuiet() -
isIncremental
public boolean isIncremental() -
isRevprop
public boolean isRevprop() -
isStrict
public boolean isStrict() -
getRevisionRanges
public java.util.List getRevisionRanges() -
getStartRevision
-
getEndRevision
-
isXML
public boolean isXML() -
isVersion
public boolean isVersion() -
isForce
public boolean isForce() -
getEncoding
public java.lang.String getEncoding() -
getFileData
public byte[] getFileData() -
getTargets
public java.util.List getTargets() -
isForceLog
public boolean isForceLog() -
getEditorCommand
public java.lang.String getEditorCommand() -
getDiffCommand
public java.lang.String getDiffCommand() -
getMessage
public java.lang.String getMessage() -
getRevisionProperties
-
isDryRun
public boolean isDryRun() -
isIgnoreAncestry
public boolean isIgnoreAncestry() -
isShowCopiesAsAdds
public boolean isShowCopiesAsAdds() -
isGitDiffFormat
public boolean isGitDiffFormat() -
isPropertiesOnly
public boolean isPropertiesOnly() -
isIgnoreProperties
public boolean isIgnoreProperties() -
isReverseDiff
public boolean isReverseDiff() -
isIgnoreWhitespace
public boolean isIgnoreWhitespace() -
isShowDiff
public boolean isShowDiff() -
isUseMergeHistory
public boolean isUseMergeHistory() -
isRecordOnly
public boolean isRecordOnly() -
getExtensions
public java.util.Collection getExtensions() -
getNativeEOL
public java.lang.String getNativeEOL() -
isRelocate
public boolean isRelocate() -
isNoUnlock
public boolean isNoUnlock() -
isKeepChangelist
public boolean isKeepChangelist() -
isParents
public boolean isParents() -
isKeepLocal
public boolean isKeepLocal() -
getResolveAccept
-
isRemove
public boolean isRemove() -
isSummarize
public boolean isSummarize() -
isNoticeAncestry
public boolean isNoticeAncestry() -
isNoDiffDeleted
public boolean isNoDiffDeleted() -
isNoDiffAdded
public boolean isNoDiffAdded() -
getOldTarget
public java.lang.String getOldTarget() -
getNewTarget
public java.lang.String getNewTarget() -
getAuthorOfInterest
public java.lang.String getAuthorOfInterest() -
isNoAutoProps
public boolean isNoAutoProps() -
getRegularExpression
public java.lang.String getRegularExpression() -
getLimit
public long getLimit() -
isStopOnCopy
public boolean isStopOnCopy() -
isAllRevisionProperties
public boolean isAllRevisionProperties() -
getStripCount
public int getStripCount() -
getDiffOptions
- Throws:
SVNException
-
isAllowMixedRevisions
public boolean isAllowMixedRevisions() -
isShowInheritedProps
public boolean isShowInheritedProps() -
getShowItem
public java.lang.String getShowItem() -
isNoNewLine
public boolean isNoNewLine() -
isPinExternals
public boolean isPinExternals() -
isRemoveUnversioned
public boolean isRemoveUnversioned() -
isRemoveIgnored
public boolean isRemoveIgnored() -
isIncludeExternals
public boolean isIncludeExternals() -
getConflictStats
-
getRevisionProperties
public SVNProperties getRevisionProperties(java.lang.String message, SVNCommitItem[] commitables, SVNProperties revisionProperties) throws SVNException Description copied from interface:ISVNCommitHandler
Handles the incoming revision properties and returns filtered revision properties given the paths (represented bycommitables
) collected for committing and the commit log message.Only the returned filtered revision properties will be set on a new committed revision.
- Specified by:
getRevisionProperties
in interfaceISVNCommitHandler
- Parameters:
message
- log message for commitcommitables
- paths to commitrevisionProperties
- initial revision properties- Returns:
- filtered revision properties
- Throws:
SVNException
-
getCommitMessage
public java.lang.String getCommitMessage(java.lang.String message, SVNCommitItem[] commitables) throws SVNException Description copied from interface:ISVNCommitHandler
Handles the incoming initial log message and items intended for a commit and returns a new commit log message.- Specified by:
getCommitMessage
in interfaceISVNCommitHandler
- Parameters:
message
- an initial log messagecommitables
- an array of items to be committed- Returns:
- a new log message string or NULL to cancel commit operation.
- Throws:
SVNException
-
parseRevisionProperty
- Throws:
SVNException
-
createCommitMessageTemplate
-