Package org.apache.maven.scm
Class ScmResult
java.lang.Object
org.apache.maven.scm.ScmResult
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AddScmResult,BlameScmResult,BranchScmResult,ChangeLogScmResult,CheckInScmResult,CheckOutScmResult,DiffScmResult,EditScmResult,ExportScmResult,InfoScmResult,ListScmResult,LoginScmResult,MkdirScmResult,RemoteInfoScmResult,RemoveScmResult,StatusScmResult,TagScmResult,UnEditScmResult,UntagScmResult,UpdateScmResult
- Author:
- Trygve Laugstøl
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
-
Field Details
-
PASSWORD_PLACE_HOLDER
- See Also:
-
-
Constructor Details
-
ScmResult
Copy constructor.Typically used from derived classes when wrapping a ScmResult into a specific type eg. AddScmResult
- Parameters:
scmResult- not null
-
ScmResult
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
-
-
Method Details
-
isSuccess
- Returns:
- True if the command was in success
-
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
- Returns:
- Output from Std.Out from the provider during execution of the command that resulted in this
-
getCommandLine
- Returns:
- The actual provider specific command that resulted in this
-