Buffer the output of execAction when running in parallel.
When 2 or more tasks exec tasks run in parallel and all of them produce output to System.out the output becomes incomprehensible.
This implementation provides an exec factory with a buffering mechanism: output of the task is only displayed, when the exec finishes. During execution the output (stdout, and stderr) is redirected to a buffer, this buffer can "replay" the recorded output.
When an exec task fails, the exception thrown contains the exec task's stderr output.
Buffer the output of execAction when running in parallel. When 2 or more tasks exec tasks run in parallel and all of them produce output to
System.out
the output becomes incomprehensible. This implementation provides an exec factory with a buffering mechanism: output of the task is only displayed, when the exec finishes. During execution the output (stdout
, andstderr
) is redirected to a buffer, this buffer can "replay" the recorded output. When an exec task fails, the exception thrown contains the exec task'sstderr
output.