/** * If <code>true</code>, the process's output will be captured and returned in the results. This may be ignored if * <code>waitForCompletion</code> is 0 or less. Be careful setting this to <code>true</code>, you must ensure that * the process will not write a lot of output - you might run out of memory if the process is a long-lived daemon * process that outputs a lot of log messages, for example. By default, output is *not* captured. * @deprecated @see {@link #setCaptureMode(CaptureMode)} * @param captureOutput whether or not this process's output (stdout+stderr) should be captured and returned in the * results */ public void setCaptureOutput(boolean captureOutput) { this.captureMode = captureOutput ? CaptureMode.memory() : CaptureMode.none(); }