[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [exec] Add stream api to improve exec ease of use


On Sun, 9 Dec 2018 13:14:15 +0800, ideal wrote:
Hi all, the current use of java8 has been very extensive. I designed a stream api based simplified `exec` and verified its usability in a lot of
scenarios. Share my api now.


JVMLauncher<Integer> launcher = JVMLaunchers.<Integer>newJvm()
                .setCallable(() -> {
                    System.out.println("************ exec task jvm
start ***************");
                    System.out.println("************ exec task jvm
stop ***************");
                    return 1;
                .setConsole((msg) -> System.err.println(msg))

        VmFuture<Integer> out = launcher.startAndGet();   --run

It seems that the [exec] component has become unmaintained: last
release happened more than 4 years ago.

In order to make it worth reviving it (if there people willing
to do it), it would be useful to list what your project provides
that is missing from recent Java versions (e.g. enhancements to
the "Process"-related JDK classes).


To unsubscribe, e-mail: dev-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: dev-help@xxxxxxxxxxxxxxxxxx