Package org.codehaus.mojo.exec
Class ExtendedExecutor
java.lang.Object
org.apache.commons.exec.DefaultExecutor
org.codehaus.mojo.exec.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
FieldsFields inherited from interface org.apache.commons.exec.Executor
INVALID_EXITVALUE
-
Constructor Summary
Constructors -
Method Summary
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
-
Field Details
-
inheritIo
private final boolean inheritIo
-
-
Constructor Details
-
ExtendedExecutor
public ExtendedExecutor(boolean inheritIo)
-
-
Method Details
-
launch
protected Process launch(org.apache.commons.exec.CommandLine command, Map<String, String> env, File dir) throws IOException- Overrides:
launch
in classorg.apache.commons.exec.DefaultExecutor
- Throws:
IOException
-