On 20/02/2013, at 10:37 PM, Luke Daley wrote:

> http://forums.gradle.org/gradle/topics/bug_in_org_gradle_process_internal_streams_execoutputhandlerunner
> 
> It will take me a bit of of research to confirm/deny this bug as I'm not 
> exactly sure what the correct behaviour is.

It's probably because the processes launched by the script have inherited the 
script's stdout and stderr streams. Strictly speaking, it's the script's 
problem, not ours, as the script hasn't launched the background process cleanly.

Not sure there's much we can do about this with the Exec task. It's intended to 
launch a process that does something and exits, not to launch a background 
process. So, we might add a Spawn task that does a better job for launching 
background processes.

The workaround is simply to use Process to start the script and throw away the 
stdout and stderr streams.


--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com

Reply via email to