public final class StarteamCommandLineUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addCompressionOption(Commandline cl) |
static void |
addEOLOption(List<String> args) |
static Commandline |
createStarteamBaseCommandLine(String action,
StarteamScmProviderRepository repo) |
static Commandline |
createStarteamCommandLine(String action,
List<String> args,
ScmFileSet scmFileSet,
StarteamScmProviderRepository repo) |
static String |
displayCommandlineWithoutPassword(Commandline cl)
Hellper method to display command line without password
|
static int |
executeCommandline(Commandline cl,
StreamConsumer consumer,
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 parent
|
static String |
toJavaPath(String path) |
public static Commandline createStarteamBaseCommandLine(String action, StarteamScmProviderRepository repo)
public static Commandline createStarteamCommandLine(String action, List<String> args, ScmFileSet scmFileSet, StarteamScmProviderRepository repo)
public static void addCompressionOption(Commandline cl)
public static void addEOLOption(List<String> args)
public static String toJavaPath(String path)
public static String displayCommandlineWithoutPassword(Commandline cl) throws ScmException
cl
- ScmException
public static int executeCommandline(Commandline cl, StreamConsumer consumer, CommandLineUtils.StringStreamConsumer stderr, ScmLogger logger) throws ScmException
ScmException
public static String getRelativeChildDirectory(String parent, String child)
parent
- child
- Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.