Class ProcessAttributes

java.lang.Object
org.zeroturnaround.exec.ProcessAttributes

class ProcessAttributes extends Object
Immutable set of attributes used to start a process.
  • Field Details

    • command

      private final List<String> command
      The external program and its arguments.
    • directory

      private final File directory
      Working directory, null in case of current working directory.
    • environment

      private final Map<String,String> environment
      Environment variables which are added (removed in case of null values) to the started process.
    • allowedExitValues

      private final Set<Integer> allowedExitValues
      Set of accepted exit codes or null if all exit codes are allowed.
  • Constructor Details

  • Method Details

    • getCommand

      public List<String> getCommand()
    • getDirectory

      public File getDirectory()
    • getEnvironment

      public Map<String,String> getEnvironment()
    • getAllowedExitValues

      public Set<Integer> getAllowedExitValues()