org.apache.maven.scm.provider.starteam.command
Class StarteamCommandLineUtils

java.lang.Object
  extended by org.apache.maven.scm.provider.starteam.command.StarteamCommandLineUtils

public final class StarteamCommandLineUtils
extends Object

Command line construction utility.

Version:
$Id: StarteamCommandLineUtils.java 1134992 2011-06-12 21:54:27Z godin $
Author:
Dan T. Tran

Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createStarteamBaseCommandLine

public static Commandline createStarteamBaseCommandLine(String action,
                                                        StarteamScmProviderRepository repo)

createStarteamCommandLine

public static Commandline createStarteamCommandLine(String action,
                                                    List<String> args,
                                                    ScmFileSet scmFileSet,
                                                    StarteamScmProviderRepository repo)

addCompressionOption

public static void addCompressionOption(Commandline cl)

addEOLOption

public static void addEOLOption(List<String> args)

toJavaPath

public static String toJavaPath(String path)

displayCommandlineWithoutPassword

public static 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 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

Parameters:
parent -
child -
Returns:


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.