ProcessBuilder support for pipelines
Roger Riggs
Roger.Riggs at Oracle.com
Tue Jul 28 13:29:46 UTC 2015
Hi Martin,
Doing the plumbing for this is pretty minimal as you've noticed from the
webrev.
No native code is modified and it extends the existing redirect logic.
I think this is pretty useful and cheap and will work across platforms.
I use emacs every day too but somehow it seems dated.
Roger
On 7/27/2015 8:48 PM, Martin Buchholz wrote:
> In the past, when I contemplated doing this, I generally thought that
> there wasn't enough value in such a feature for the effort, given that
> one can start a subprocess shell that supports pipelines. Does this
> feature pull its weight?
>
> You don't need this to re-implement emacs in java, which has always
> been my litmus test. The missing feature is pty support, that y'all
> are less likely to add...
>
> On Mon, Jul 27, 2015 at 7:48 AM, Roger Riggs <Roger.Riggs at oracle.com
> <mailto:Roger.Riggs at oracle.com>> wrote:
>
> On most operating systems, creating pipelines of processes is
> simple and direct.
> That same function is missing from the Java Process support and
> can be provided by
> java.lang.ProcessBuilder by enabling the pipes created for stdout
> to be
> used for standard input when the processes are created.
> Comments and feedback are appreciated on the prototype API and
> implementation.
>
> Javadoc: java.lang.ProcessBuilder.startPipe:
> http://cr.openjdk.java.net/~rriggs/pipedoc/java/lang/ProcessBuilder.html#startPipe-java.lang.ProcessBuilder...-
> <http://cr.openjdk.java.net/%7Erriggs/pipedoc/java/lang/ProcessBuilder.html#startPipe-java.lang.ProcessBuilder...->
>
> webrev prototype:
> http://cr.openjdk.java.net/~rriggs//webrev-pipeline-8132394
> <http://cr.openjdk.java.net/%7Erriggs//webrev-pipeline-8132394>
>
> Thanks, Roger
>
>
More information about the core-libs-dev
mailing list