Class StarteamCommandLineUtils
- java.lang.Object
-
- org.apache.maven.scm.provider.starteam.command.StarteamCommandLineUtils
-
public final class StarteamCommandLineUtils extends Object
Command line construction utility.- Author:
- Dan T. Tran
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddCompressionOption(org.codehaus.plexus.util.cli.Commandline cl)static voidaddEOLOption(List<String> args)static org.codehaus.plexus.util.cli.CommandlinecreateStarteamBaseCommandLine(String action, StarteamScmProviderRepository repo)static org.codehaus.plexus.util.cli.CommandlinecreateStarteamCommandLine(String action, List<String> args, ScmFileSet scmFileSet, StarteamScmProviderRepository repo)static StringdisplayCommandlineWithoutPassword(org.codehaus.plexus.util.cli.Commandline cl)Hellper method to display command line without passwordstatic intexecuteCommandline(org.codehaus.plexus.util.cli.Commandline cl, org.codehaus.plexus.util.cli.StreamConsumer consumer, org.codehaus.plexus.util.cli.CommandLineUtils.StringStreamConsumer stderr, ScmLogger logger)static StringgetRelativeChildDirectory(String parent, String child)Given 2 paths, make sure parent and child are on the same tree return the port of child that not in parentstatic StringtoJavaPath(String path)
-
-
-
Method Detail
-
createStarteamBaseCommandLine
public static org.codehaus.plexus.util.cli.Commandline createStarteamBaseCommandLine(String action, StarteamScmProviderRepository repo)
-
createStarteamCommandLine
public static org.codehaus.plexus.util.cli.Commandline createStarteamCommandLine(String action, List<String> args, ScmFileSet scmFileSet, StarteamScmProviderRepository repo)
-
addCompressionOption
public static void addCompressionOption(org.codehaus.plexus.util.cli.Commandline cl)
-
displayCommandlineWithoutPassword
public static String displayCommandlineWithoutPassword(org.codehaus.plexus.util.cli.Commandline cl) throws ScmException
Hellper method to display command line without password- Parameters:
cl-- Returns:
- String
- Throws:
ScmException
-
executeCommandline
public static int executeCommandline(org.codehaus.plexus.util.cli.Commandline cl, org.codehaus.plexus.util.cli.StreamConsumer consumer, org.codehaus.plexus.util.cli.CommandLineUtils.StringStreamConsumer stderr, ScmLogger logger) throws ScmException- Throws:
ScmException
-
-