Class StarteamCommandLineUtils
java.lang.Object
org.apache.maven.scm.provider.starteam.command.StarteamCommandLineUtils
Command line construction utility.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static org.codehaus.plexus.util.cli.Commandline
addCommandlineArguments
(org.codehaus.plexus.util.cli.Commandline cl, List<String> args) static void
addCompressionOption
(org.codehaus.plexus.util.cli.Commandline cl) static void
addEOLOption
(List<String> args) static org.codehaus.plexus.util.cli.Commandline
createStarteamBaseCommandLine
(String action, StarteamScmProviderRepository repo) static org.codehaus.plexus.util.cli.Commandline
createStarteamCommandLine
(String action, List<String> args, ScmFileSet scmFileSet, StarteamScmProviderRepository repo) static String
displayCommandlineWithoutPassword
(org.codehaus.plexus.util.cli.Commandline cl) Hellper method to display command line without passwordstatic 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 String
getRelativeChildDirectory
(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 String
toJavaPath
(String path)
-
Field Details
-
settings
-
-
Constructor Details
-
StarteamCommandLineUtils
private StarteamCommandLineUtils()
-
-
Method Details
-
createStarteamBaseCommandLine
public static org.codehaus.plexus.util.cli.Commandline createStarteamBaseCommandLine(String action, StarteamScmProviderRepository repo) -
addCommandlineArguments
-
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) -
addEOLOption
-
toJavaPath
-
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
-
getRelativeChildDirectory
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:
-