org.apache.maven.scm.provider.starteam.command
public class StarteamCommandLineUtils extends java.lang.Object
Constructor and Description |
---|
StarteamCommandLineUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addCompressionOption(org.codehaus.plexus.util.cli.Commandline cl) |
static void |
addEOLOption(java.util.List args) |
static org.codehaus.plexus.util.cli.Commandline |
createStarteamBaseCommandLine(java.lang.String action,
StarteamScmProviderRepository repo) |
static org.codehaus.plexus.util.cli.Commandline |
createStarteamCommandLine(java.lang.String action,
java.util.List args,
ScmFileSet scmFileSet,
StarteamScmProviderRepository repo) |
static java.lang.String |
displayCommandlineWithoutPassword(org.codehaus.plexus.util.cli.Commandline cl)
Hellper method to display command line without password
|
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) |
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
|
static java.lang.String |
toJavaPath(java.lang.String path) |
public static org.codehaus.plexus.util.cli.Commandline createStarteamBaseCommandLine(java.lang.String action, StarteamScmProviderRepository repo)
public static org.codehaus.plexus.util.cli.Commandline createStarteamCommandLine(java.lang.String action, java.util.List args, ScmFileSet scmFileSet, StarteamScmProviderRepository repo)
public static void addCompressionOption(org.codehaus.plexus.util.cli.Commandline cl)
public static void addEOLOption(java.util.List args)
public static java.lang.String toJavaPath(java.lang.String path)
public static java.lang.String displayCommandlineWithoutPassword(org.codehaus.plexus.util.cli.Commandline cl) throws ScmException
cl
- ScmException
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
ScmException
public static java.lang.String getRelativeChildDirectory(java.lang.String parent, java.lang.String child)
parent
- child
- Copyright © 2003-2014. All Rights Reserved.