Class ExtendedExecutor

  • All Implemented Interfaces:
    org.apache.commons.exec.Executor

    public class ExtendedExecutor
    extends org.apache.commons.exec.DefaultExecutor
    An executor which has the ability to use the ProcessBuilder.inheritIO() flag.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean inheritIo  
      • Fields inherited from interface org.apache.commons.exec.Executor

        INVALID_EXITVALUE
    • Constructor Summary

      Constructors 
      Constructor Description
      ExtendedExecutor​(boolean inheritIo)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Process launch​(org.apache.commons.exec.CommandLine command, java.util.Map<java.lang.String,​java.lang.String> env, java.io.File dir)  
      • Methods inherited from class org.apache.commons.exec.DefaultExecutor

        createThread, execute, execute, execute, execute, getExecutorThread, getProcessDestroyer, getStreamHandler, getWatchdog, getWorkingDirectory, isFailure, setExitValue, setExitValues, setProcessDestroyer, setStreamHandler, setWatchdog, setWorkingDirectory
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • inheritIo

        private final boolean inheritIo
    • Constructor Detail

      • ExtendedExecutor

        public ExtendedExecutor​(boolean inheritIo)
    • Method Detail

      • launch

        protected java.lang.Process launch​(org.apache.commons.exec.CommandLine command,
                                           java.util.Map<java.lang.String,​java.lang.String> env,
                                           java.io.File dir)
                                    throws java.io.IOException
        Overrides:
        launch in class org.apache.commons.exec.DefaultExecutor
        Throws:
        java.io.IOException