Class ScmResult

    • Constructor Detail

      • ScmResult

        public ScmResult​(ScmResult scmResult)
        Copy constructor.

        Typically used from derived classes when wrapping a ScmResult into a specific type e.g. AddScmResult.

        Parameters:
        scmResult - not null
      • ScmResult

        public ScmResult​(String commandLine,
                         String providerMessage,
                         String commandOutput,
                         boolean success)
        ScmResult contructor.
        Parameters:
        commandLine - the provider specific command line used
        providerMessage - the provider message
        commandOutput - the command output of the scm tool
        success - true if the command is in success
    • Method Detail

      • isSuccess

        public boolean isSuccess()
        Returns:
        true if the command was in success
      • getProviderMessage

        public 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 String getCommandOutput()
        Returns:
        output from Std.Out from the provider during execution of the command that resulted in this
      • getCommandLine

        public String getCommandLine()
        Returns:
        the actual provider specific command that resulted in this