Interface ConfigStepCommand

All Superinterfaces:
ConfigStep

public interface ConfigStepCommand extends ConfigStep
Runs a system command. type: post-step Example XML:

  <command>
      <exec>scripts/example.sh</exec>
      <stdin>scripts/example-input.txt</stdin>
      <stdout>scripts/example-output.txt</stdout>
      <stderr>scripts/example-error.txt</stderr>
      <argument>arg1</argument>
      <argument>arg2</argument>
  </command>
 
  • Method Details

    • getExec

      String getExec()
      The path to executable to run. This can be an absolute path or a path relative to the output directory. The working directory of the command will be the output directory. XML tag: "exec"
      Returns:
      The path to executable to run.
    • setExec

      void setExec(String exec)
    • getInput

      String getInput()
      The path to a file containing input to the command. If available, all content of the file will be piped to the input stream of the process. This can be an absolute path or a path relative to the output directory. XML tag: "stdin"
      Returns:
      The path to a file containing input to the command.
    • setInput

      void setInput(String input)
    • getOutput

      String getOutput()
      The path to a file for storing the standard output of the process. If available, all standard output from the process will be stored in this file. This can be an absolute path or a path relative to the output directory. XML tag: "stdout"
      Returns:
      The path to a file for storing the standard output of the process.
    • setOutput

      void setOutput(String output)
    • getError

      String getError()
      The path to a file for storing the error output of the process. If available, all error output from the process will be stored in this file. This can be an absolute path or a path relative to the output directory. XML tag: "stderr"
      Returns:
      The path to a file for storing the error output of the process.
    • setError

      void setError(String error)
    • getArguments

      List<String> getArguments()
      The arguments sent to the command. XML tag: "argument"
      Returns:
      The arguments sent to the command.
    • setArguments

      void setArguments(List<String> arguments)