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
- Author:
- TMate Software Ltd.
-
-
Field Summary
-
Fields inherited from interface org.tmatesoft.svn.core.ISVNCanceller
NULL
-
-
Constructor Summary
Constructors Constructor Description SVNCommandEnvironment(java.lang.String programName, java.io.PrintStream out, java.io.PrintStream err, java.io.InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ISVNAuthenticationManager
createClientAuthenticationManager()
protected DefaultSVNOptions
createClientOptions()
java.lang.String
getAuthorOfInterest()
java.lang.String
getChangelist()
java.lang.String[]
getChangelists()
java.util.Collection
getChangelistsCollection()
protected java.lang.String
getCommandLineClientName()
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.SVNConflictStats
getConflictStats()
SVNDepth
getDepth()
java.lang.String
getDiffCommand()
SVNDiffOptions
getDiffOptions()
java.lang.String
getEditorCommand()
java.lang.String
getEncoding()
SVNRevision
getEndRevision()
java.util.Collection
getExtensions()
byte[]
getFileData()
long
getLimit()
java.lang.String
getMessage()
java.lang.String
getNativeEOL()
java.lang.String
getNewTarget()
java.lang.String
getOldTarget()
java.lang.String
getRegularExpression()
SVNConflictAcceptPolicy
getResolveAccept()
SVNProperties
getRevisionProperties()
SVNProperties
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
getRevisionRanges()
SVNDepth
getSetDepth()
java.lang.String
getShowItem()
SVNShowRevisionType
getShowRevisionType()
SVNRevision
getStartRevision()
int
getStripCount()
protected SVNCommand
getSVNCommand()
java.util.List
getTargets()
void
initClientManager()
protected void
initOption(SVNOptionValue optionValue)
protected void
initOptions(SVNCommandLine commandLine)
boolean
isAllowMixedRevisions()
boolean
isAllRevisionProperties()
boolean
isChangeOptionUsed()
boolean
isDryRun()
boolean
isForce()
boolean
isForceLog()
boolean
isGitDiffFormat()
boolean
isIgnoreAncestry()
boolean
isIgnoreKeywords()
boolean
isIgnoreProperties()
boolean
isIgnoreWhitespace()
boolean
isIncludeExternals()
boolean
isIncremental()
boolean
isKeepChangelist()
boolean
isKeepLocal()
boolean
isNoAutoProps()
boolean
isNoDiffAdded()
boolean
isNoDiffDeleted()
boolean
isNoIgnore()
boolean
isNoNewLine()
boolean
isNoticeAncestry()
boolean
isNoUnlock()
boolean
isParents()
boolean
isPinExternals()
boolean
isPropertiesOnly()
boolean
isQuiet()
boolean
isRecordOnly()
boolean
isReIntegrate()
boolean
isRelocate()
boolean
isRemove()
boolean
isRemoveIgnored()
boolean
isRemoveUnversioned()
boolean
isReverseDiff()
boolean
isRevisionOptionUsed()
boolean
isRevprop()
boolean
isShowCopiesAsAdds()
boolean
isShowDiff()
boolean
isShowInheritedProps()
boolean
isStopOnCopy()
boolean
isStrict()
boolean
isSummarize()
boolean
isUpdate()
boolean
isUseMergeHistory()
boolean
isVerbose()
boolean
isVersion()
boolean
isXML()
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
-
-
-
-
Method Detail
-
initClientManager
public void initClientManager() throws SVNException
- 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
protected DefaultSVNOptions createClientOptions() throws SVNException
- Specified by:
createClientOptions
in classAbstractSVNCommandEnvironment
- Throws:
SVNException
-
createClientAuthenticationManager
protected ISVNAuthenticationManager createClientAuthenticationManager()
- Specified by:
createClientAuthenticationManager
in classAbstractSVNCommandEnvironment
-
initOptions
protected void initOptions(SVNCommandLine commandLine) throws SVNException
- Overrides:
initOptions
in classAbstractSVNCommandEnvironment
- Throws:
SVNException
-
initOption
protected void initOption(SVNOptionValue optionValue) throws SVNException
- Specified by:
initOption
in classAbstractSVNCommandEnvironment
- Throws:
SVNException
-
getSVNCommand
protected SVNCommand getSVNCommand()
-
validateOptions
protected void validateOptions(SVNCommandLine commandLine) throws SVNException
- Overrides:
validateOptions
in classAbstractSVNCommandEnvironment
- Throws:
SVNException
-
getCommandLineClientName
protected java.lang.String getCommandLineClientName()
- Specified by:
getCommandLineClientName
in classAbstractSVNCommandEnvironment
-
isReIntegrate
public boolean isReIntegrate()
-
getShowRevisionType
public SVNShowRevisionType 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
public SVNDepth getDepth()
-
getSetDepth
public SVNDepth 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
public SVNRevision getStartRevision()
-
getEndRevision
public SVNRevision 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
public SVNProperties 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
public SVNConflictAcceptPolicy 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
public SVNDiffOptions getDiffOptions() throws SVNException
- 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
public SVNConflictStats 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
-
-