$EXEC output streaming
Jim Laskey (Oracle)
james.laskey at oracle.com
Mon Nov 2 15:12:58 UTC 2015
We’ll see what we can do. The main issue we have to work around is that the process needs to remain active until all outputs are processed. This creates interesting dependencies. At any rate we’ll work it out.
> On Nov 2, 2015, at 5:26 AM, Sebastian Daschner <java at sebastian-daschner.de> wrote:
> Hi there,
> As shortly discussed during Adam Bien's JavaOne talk, the $EXEC function
> blocks and shows no output until the spawned process ends.
> This may be a problem for using Nashorn scripts as automation tasks.
> On one side the output of a long running task (e. g. a build task) is
> only shown at once after the process has been finished. For instance see
> the output of $EXEC("mvn clean deploy").
> On the other side processes which will not end automatically like `tail
> -f something.log` will show no output at all and block the execution
> However, it would be a very helpful enhancement to make this streaming
> of process outputs possible.
> Maybe in combination with java.io.OutputStream?
More information about the nashorn-dev