RFR 9: 8132394 : (process) ProcessBuilder support for a pipeline of processes

Roger Riggs Roger.Riggs at Oracle.com
Thu Nov 5 21:56:17 UTC 2015

Please review the new ProcessBuilder.startPipeline API, implementation, 
and tests.

The new method starts a Process for each ProcessBuilder, creating a 
pipeline of
processes linked by their standard output and standard input streams.
Each builder can use redirectErrorsream to coalesce error output with 
standard output.
But otherwise standard error streams are not modified.

The API is the same as discussed on the earlier core-libs thread [1] and 
the comments.


javadoc of ProcessBuilder:  only startPipeline is new:

Thanks, Roger

p.s. The PIPE_CHANNEL redirection proposed by Peter Levert is complementary
and still has a bug or two to work out.


More information about the core-libs-dev mailing list