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

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

public class StarteamCommandLineUtils
extends java.lang.Object

Command line construction utility.

Version:
$Id: StarteamCommandLineUtils.java 328109 2005-10-24 17:47:05Z evenisse $
Author:
Dan T. Tran

Constructor Summary
StarteamCommandLineUtils()
           
 
Method Summary
static org.codehaus.plexus.util.cli.Commandline createStarteamBaseCommandLine(java.lang.String action, java.io.File relativeFileOrDir, StarteamScmProviderRepository repo)
           
static org.codehaus.plexus.util.cli.Commandline createStarteamBaseCommandLine(java.lang.String action, 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, org.apache.maven.scm.log.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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StarteamCommandLineUtils

public StarteamCommandLineUtils()
Method Detail

createStarteamBaseCommandLine

public static org.codehaus.plexus.util.cli.Commandline createStarteamBaseCommandLine(java.lang.String action,
                                                                                     StarteamScmProviderRepository repo)

createStarteamBaseCommandLine

public static org.codehaus.plexus.util.cli.Commandline createStarteamBaseCommandLine(java.lang.String action,
                                                                                     java.io.File relativeFileOrDir,
                                                                                     StarteamScmProviderRepository repo)

toJavaPath

public static java.lang.String toJavaPath(java.lang.String path)

displayCommandlineWithoutPassword

public static java.lang.String displayCommandlineWithoutPassword(org.codehaus.plexus.util.cli.Commandline cl)
                                                          throws org.apache.maven.scm.ScmException
Hellper method to display command line without password

Parameters:
cl -
Returns:
String
Throws:
org.apache.maven.scm.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,
                                     org.apache.maven.scm.log.ScmLogger logger)
                              throws org.apache.maven.scm.ScmException
Throws:
org.apache.maven.scm.ScmException

getRelativeChildDirectory

public 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

Parameters:
parent -
child -
Returns: