Class JazzScmCommand
java.lang.Object
org.apache.maven.scm.provider.jazz.command.JazzScmCommand
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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJazzScmCommand(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.JazzScmCommand(String cmd, ScmProviderRepository repo, ScmFileSet fileSet, ScmLogger logger) Create a JazzScmCommand when no sub-command is needed. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArgument(String arg) voidaddArgument(ScmFileSet fileSet) static StringcryptPassword(org.codehaus.plexus.util.cli.Commandline cl) intexecute(org.codehaus.plexus.util.cli.StreamConsumer out, ErrorConsumer err) org.codehaus.plexus.util.cli.Commandlinestatic booleanisCommandExitError(int status) Check if the exit status is meant to be an error: https://jazz.net/help-dev/clm/index.jsp?topic=%2Fcom.ibm.team.scm.doc%2Ftopics%2Fr_scm_cli_retcodes.htmlprivate voidlogDebugMessage(String message) private voidlogErrorMessage(String message) private voidlogInfoMessage(String message)
-
Field Details
-
fLogger
-
fCommand
private org.codehaus.plexus.util.cli.Commandline fCommand
-
-
Constructor Details
-
JazzScmCommand
Create a JazzScmCommand when no sub-command is needed. -
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 Details
-
addArgument
-
addArgument
-
execute
public int execute(org.codehaus.plexus.util.cli.StreamConsumer out, ErrorConsumer err) throws ScmException - Throws:
ScmException
-
getCommandString
-
getCommandline
public org.codehaus.plexus.util.cli.Commandline getCommandline() -
logErrorMessage
-
logInfoMessage
-
logDebugMessage
-
cryptPassword
-
isCommandExitError
public static boolean isCommandExitError(int status) Check if the exit status is meant to be an error: https://jazz.net/help-dev/clm/index.jsp?topic=%2Fcom.ibm.team.scm.doc%2Ftopics%2Fr_scm_cli_retcodes.html
-