org.apache.maven.scm.provider.starteam.command
Class StarteamCommandLineUtils
java.lang.Object
org.apache.maven.scm.provider.starteam.command.StarteamCommandLineUtils
public class StarteamCommandLineUtils
- extends java.lang.Object
Command line construction utility.
- Version:
- $Id: StarteamCommandLineUtils.java 691832 2008-09-03 23:54:44Z vsiveton $
- Author:
- Dan T. Tran
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StarteamCommandLineUtils
public StarteamCommandLineUtils()
createStarteamBaseCommandLine
public static Commandline createStarteamBaseCommandLine(java.lang.String action,
StarteamScmProviderRepository repo)
createStarteamCommandLine
public static Commandline createStarteamCommandLine(java.lang.String action,
java.util.List args,
ScmFileSet scmFileSet,
StarteamScmProviderRepository repo)
addCompressionOption
public static void addCompressionOption(Commandline cl)
addEOLOption
public static void addEOLOption(java.util.List args)
toJavaPath
public static java.lang.String toJavaPath(java.lang.String path)
displayCommandlineWithoutPassword
public static java.lang.String displayCommandlineWithoutPassword(Commandline cl)
throws ScmException
- Hellper method to display command line without password
- Parameters:
cl
-
- Returns:
- String
- Throws:
ScmException
executeCommandline
public static int executeCommandline(Commandline cl,
StreamConsumer consumer,
CommandLineUtils.StringStreamConsumer stderr,
ScmLogger logger)
throws ScmException
- Throws:
ScmException
getRelativeChildDirectory
public static java.lang.String getRelativeChildDirectory(java.lang.String parent,
java.lang.String child)
- Given 2 paths, make sure parent and child are on the same tree
return the port of child that not in parent
- Parameters:
parent
- child
-
- Returns: