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

Class StarteamCommandLineUtils

public class StarteamCommandLineUtils extends Object

Command line construction utility.

Version: $Id: StarteamCommandLineUtils.java 381352 2006-02-27 15:00:06Z evenisse $

Author: Dan T. Tran

Method Summary
static CommandlinecreateStarteamBaseCommandLine(String action, StarteamScmProviderRepository repo)
static CommandlinecreateStarteamBaseCommandLine(String action, File relativeFileOrDir, StarteamScmProviderRepository repo)
static StringdisplayCommandlineWithoutPassword(Commandline cl)
Hellper method to display command line without password
static intexecuteCommandline(Commandline cl, StreamConsumer consumer, StringStreamConsumer stderr, ScmLogger logger)
static StringgetRelativeChildDirectory(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 StringtoJavaPath(String path)

Method Detail

createStarteamBaseCommandLine

public static Commandline createStarteamBaseCommandLine(String action, StarteamScmProviderRepository repo)

createStarteamBaseCommandLine

public static Commandline createStarteamBaseCommandLine(String action, File relativeFileOrDir, StarteamScmProviderRepository repo)

displayCommandlineWithoutPassword

public static String displayCommandlineWithoutPassword(Commandline cl)
Hellper method to display command line without password

Parameters: cl

Returns: String

Throws: ScmException

executeCommandline

public static int executeCommandline(Commandline cl, StreamConsumer consumer, StringStreamConsumer stderr, ScmLogger logger)

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:

toJavaPath

public static String toJavaPath(String path)
Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.