org.apache.maven.scm.provider.jazz.command
Class JazzScmCommand

java.lang.Object
  extended by org.apache.maven.scm.provider.jazz.command.JazzScmCommand

public class JazzScmCommand
extends Object

The base class for the underlying jazz "scm.sh"/"scm.exe" command.

The SCM command is documented here:

V2.0.2: http://publib.boulder.ibm.com/infocenter/rtc/v2r0m0/topic/com.ibm.team.scm.doc/topics/r_scm_cli_scm.html V3.0: http://publib.boulder.ibm.com/infocenter/clmhelp/v3r0/topic/com.ibm.team.scm.doc/topics/r_scm_cli_scm.html V3.0.1: http://publib.boulder.ibm.com/infocenter/clmhelp/v3r0m1/topic/com.ibm.team.scm.doc/topics/r_scm_cli_scm.html

Author:
Chris Graham

Constructor Summary
JazzScmCommand(String cmd, ScmProviderRepository repo, ScmFileSet fileSet, ScmLogger logger)
          Create a JazzScmCommand when no sub-command is needed.
JazzScmCommand(String cmd, String subCmd, ScmProviderRepository repo, boolean addRepositoryWorkspaceArg, ScmFileSet fileSet, ScmLogger logger)
          Create a JazzScmCommand, adding the repository-uri as needed.
JazzScmCommand(String cmd, String subCmd, ScmProviderRepository repo, ScmFileSet fileSet, ScmLogger logger)
          Create a JazzScmCommand when a sub-command is needed.
 
Method Summary
 void addArgument(ScmFileSet fileSet)
           
 void addArgument(String arg)
           
static String cryptPassword(Commandline cl)
           
 int execute(StreamConsumer out, ErrorConsumer err)
           
 Commandline getCommandline()
           
 String getCommandString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JazzScmCommand

public JazzScmCommand(String cmd,
                      ScmProviderRepository repo,
                      ScmFileSet fileSet,
                      ScmLogger logger)
Create a JazzScmCommand when no sub-command is needed.

Throws:
ScmException

JazzScmCommand

public JazzScmCommand(String cmd,
                      String subCmd,
                      ScmProviderRepository repo,
                      ScmFileSet fileSet,
                      ScmLogger logger)
Create a JazzScmCommand when a sub-command is needed. eg: "create snapshot ..."


JazzScmCommand

public JazzScmCommand(String cmd,
                      String subCmd,
                      ScmProviderRepository repo,
                      boolean addRepositoryWorkspaceArg,
                      ScmFileSet fileSet,
                      ScmLogger logger)
Create a JazzScmCommand, adding the repository-uri as needed.

Method Detail

addArgument

public void addArgument(ScmFileSet fileSet)

addArgument

public void addArgument(String arg)

execute

public int execute(StreamConsumer out,
                   ErrorConsumer err)
            throws ScmException
Throws:
ScmException

getCommandString

public String getCommandString()

getCommandline

public Commandline getCommandline()

cryptPassword

public static String cryptPassword(Commandline cl)


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