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
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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) private static java.lang.String
getEditorCommand
(AbstractSVNCommandEnvironment env, java.lang.String editorCommand) 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) private static java.lang.String
runEditor
(java.lang.String editorCommand, java.lang.String[] args, java.lang.String[] env, ISVNReturnValueCallback callback) static byte[]
runEditor
(AbstractSVNCommandEnvironment env, java.lang.String editorCommand, byte[] existingValue, java.lang.String prefix) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SVNCommandUtil
public SVNCommandUtil()
-
-
Method Details
-
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
-
runEditor
private static java.lang.String runEditor(java.lang.String editorCommand, java.lang.String[] args, java.lang.String[] env, ISVNReturnValueCallback callback) throws SVNException - Throws:
SVNException
-
prompt
public static java.lang.String prompt(java.lang.String promptMessage, SVNCommandEnvironment env) throws SVNException - Throws:
SVNException
-
getEditorCommand
private static java.lang.String getEditorCommand(AbstractSVNCommandEnvironment env, java.lang.String editorCommand) 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
-
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
-