Package org.tmatesoft.svn.cli
Class SVNCommandUtil
- java.lang.Object
-
- org.tmatesoft.svn.cli.SVNCommandUtil
-
public class SVNCommandUtil extends java.lang.Object
- Version:
- 1.3
- Author:
- TMate Software Ltd.
-
-
Constructor Summary
Constructors Constructor Description SVNCommandUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String[]
breakToLines(java.lang.String str)
static void
editFileExternally(AbstractSVNCommandEnvironment env, java.lang.String editorCommand, java.lang.String path)
static java.lang.String
getCommandHelp(AbstractSVNCommand command, java.lang.String programName, boolean printOptionAlias)
static java.lang.String
getGenericHelp(java.lang.String programName, java.lang.String header, java.lang.String footer, java.util.Comparator commandComparator)
static int
getLinesCount(java.lang.String str)
static java.lang.String
getLocalPath(java.lang.String path)
static java.lang.String
getVersion(AbstractSVNCommandEnvironment env, boolean quiet)
static boolean
isURL(java.lang.String pathOrUrl)
static void
mergeFileExternally(AbstractSVNCommandEnvironment env, java.lang.String basePath, java.lang.String repositoryPath, java.lang.String localPath, java.lang.String mergeResultPath, java.lang.String wcPath, boolean[] remainsInConflict)
static void
parseConfigOption(java.lang.String optionArg, java.util.Map configOptions, java.util.Map serversOptions)
static java.lang.String
prompt(java.lang.String promptMessage, SVNCommandEnvironment env)
static byte[]
runEditor(AbstractSVNCommandEnvironment env, java.lang.String editorCommand, byte[] existingValue, java.lang.String prefix)
-
-
-
Method Detail
-
getLocalPath
public static java.lang.String getLocalPath(java.lang.String path)
-
isURL
public static boolean isURL(java.lang.String pathOrUrl)
-
mergeFileExternally
public static void mergeFileExternally(AbstractSVNCommandEnvironment env, java.lang.String basePath, java.lang.String repositoryPath, java.lang.String localPath, java.lang.String mergeResultPath, java.lang.String wcPath, boolean[] remainsInConflict) throws SVNException
- Throws:
SVNException
-
editFileExternally
public static void editFileExternally(AbstractSVNCommandEnvironment env, java.lang.String editorCommand, java.lang.String path) throws SVNException
- Throws:
SVNException
-
runEditor
public static byte[] runEditor(AbstractSVNCommandEnvironment env, java.lang.String editorCommand, byte[] existingValue, java.lang.String prefix) throws SVNException
- Throws:
SVNException
-
prompt
public static java.lang.String prompt(java.lang.String promptMessage, SVNCommandEnvironment env) throws SVNException
- Throws:
SVNException
-
getLinesCount
public static int getLinesCount(java.lang.String str)
-
breakToLines
public static java.lang.String[] breakToLines(java.lang.String str)
-
getCommandHelp
public static java.lang.String getCommandHelp(AbstractSVNCommand command, java.lang.String programName, boolean printOptionAlias)
-
getVersion
public static java.lang.String getVersion(AbstractSVNCommandEnvironment env, boolean quiet)
-
getGenericHelp
public static java.lang.String getGenericHelp(java.lang.String programName, java.lang.String header, java.lang.String footer, java.util.Comparator commandComparator)
-
parseConfigOption
public static void parseConfigOption(java.lang.String optionArg, java.util.Map configOptions, java.util.Map serversOptions) throws SVNException
- Throws:
SVNException
-
-