/** * Default constructor creating a default <code>PumpStreamHandler</code> * and sets the working directory of the subprocess to the current * working directory. * * The <code>PumpStreamHandler</code> pumps the output of the subprocess * into our <code>System.out</code> and <code>System.err</code> to avoid * into our <code>System.out</code> and <code>System.err</code> to avoid * a blocked or deadlocked subprocess (see{@link java.lang.Process Process}). */ public DefaultExecutor() { this.streamHandler = new PumpStreamHandler(); this.launcher = CommandLauncherFactory.createVMLauncher(); this.exitValues = new int[0]; this.workingDirectory = new File("."); }