new-integration-tests/src/test/java/oracle/weblogic/kubernetes/actions/impl/primitive/Command.java
public ExecResult executeAndReturnResult() {
    if (params.verbose()) {
      getLogger().info("Executing command {0}", params.command());
    }
    ExecResult result = null;
    try {
      result = ExecCommand.exec(
          params.command(),
          params.redirect(),
          params.env());
      if (params.saveResults()) {
        params.stdout(result.stdout());
        params.stderr(result.stderr());
      }

    } catch (IOException | InterruptedException ie) {
      getLogger().severe("The command execution failed", ie);
    }
    return result;
  }
/**
   * Execute a command and return ExecResult.
   *
   * @return ExecResult
   */
Execute a command and return ExecResult.
Execute a command and return ExecResult .
public ExecResult executeAndReturnResult() {
    if (params.verbose()) {
      getLogger().info("Executing command {0}", params.command());
    }
    ExecResult result = null;
    try {
      result = ExecCommand.exec(
          params.command(),
          params.redirect(),
          params.env());
      if (params.saveResults()) {
        params.stdout(result.stdout());
        params.stderr(result.stderr());
      }
    } catch (IOException | InterruptedException ie) {
      getLogger().severe("The command execution failed", ie);
    }
    return result;
  }
public ExecResult executeAndReturnResult ( ) { if ( params . verbose ( ) ) { getLogger ( ) . info ( "Executing command {0}" , params . command ( ) ) ; } ExecResult result = null ; try { result = ExecCommand . exec ( params . command ( ) , params . redirect ( ) , params . env ( ) ) ; if ( params . saveResults ( ) ) { params . stdout ( result . stdout ( ) ) ; params . stderr ( result . stderr ( ) ) ; } } catch ( IOException | InterruptedException ie ) { getLogger ( ) . severe ( "The command execution failed" , ie ) ; } return result ; }
Execute a command and return ExecResult.
Execute a command and return ExecResult .