org.apache.maven.scm
Class ScmResult
java.lang.Object
org.apache.maven.scm.ScmResult
- Direct Known Subclasses:
- AddScmResult, BranchScmResult, ChangeLogScmResult, CheckInScmResult, CheckOutScmResult, DiffScmResult, EditScmResult, ExportScmResult, ListScmResult, LoginScmResult, RemoveScmResult, StatusScmResult, TagScmResult, UnEditScmResult, UpdateScmResult
public class ScmResult
- extends java.lang.Object
- Version:
- $Id: ScmResult.java 685539 2008-08-13 13:27:27Z vsiveton $
- Author:
- Trygve Laugstøl
Constructor Summary |
ScmResult(ScmResult scmResult)
Copy constructor. |
ScmResult(java.lang.String commandLine,
java.lang.String providerMessage,
java.lang.String commandOutput,
boolean success)
ScmResult contructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScmResult
public ScmResult(ScmResult scmResult)
- Copy constructor.
Typically used from derived classes when wrapping a ScmResult
into a specific type eg. AddScmResult
- Parameters:
scmResult
- not null
ScmResult
public ScmResult(java.lang.String commandLine,
java.lang.String providerMessage,
java.lang.String commandOutput,
boolean success)
- ScmResult contructor.
- Parameters:
commandLine
- The provider specific command line usedproviderMessage
- The provider messagecommandOutput
- The command output of the scm toolsuccess
- True if the command is in success
isSuccess
public boolean isSuccess()
- Returns:
- True if the command was in success
getProviderMessage
public java.lang.String getProviderMessage()
- Returns:
- A message from the provider. On success this would typically be null or
an empty string. On failure it would be the error message from the provider
getCommandOutput
public java.lang.String getCommandOutput()
- Returns:
- Output from Std.Out from the provider during execution
of the command that resulted in this
getCommandLine
public java.lang.String getCommandLine()
- Returns:
- The actual provider specific command that resulted in this
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.