wood burning stoves*
The moose likes Groovy and the fly likes Process.consumeOutputProcess() Blocks? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Process.consumeOutputProcess() Blocks?" Watch "Process.consumeOutputProcess() Blocks?" New topic

Process.consumeOutputProcess() Blocks?

Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

I'm using Groovy 1.6.3. From the GDK,

consumeProcessOutput(OutputStream output, OutputStream error)
Gets the output and error streams from a process and reads them to keep the process from blocking due to a full output buffer.

But then, when I execute this statement, it blocks.

Anyone has any idea how to solve this? Is this a bug in the consumeProcessOutput()?

SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
jQuery in Action, 2nd edition
subject: Process.consumeOutputProcess() Blocks?