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
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
success
private final boolean success -
providerMessage
-
commandOutput
-
commandLine
-
PASSWORD_PLACE_HOLDER
- See Also:
-
patternForUserColonPasswordAtHost
-
-
Constructor Details
-
ScmResult
Copy constructor.Typically used from derived classes when wrapping a ScmResult into a specific type e.g. 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
public boolean 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
-
masked
-