kobo / groovyserv

Groovy's startup acceralator.
http://kobo.github.io/groovyserv/
Other
98 stars 10 forks source link

missing output with consumeProcessOutput only when passed 'as Appendable' (the default) #52

Closed jryan128 closed 8 years ago

jryan128 commented 11 years ago

When running with groovyclient I get no output, with regular groovy I do:

def p = 'dir'.execute()
p.consumeProcessOutput(System.out as Appendable, System.err as Appendable)

Also, if I switch to:

def p = 'dir'.execute()
p.consumeProcessOutput(System.out as OutputStream, System.err as OutputStream)

It works.

Looks like it has something to do with the way newlines or reading the input stream is being handled differently by ProcessGroovyMethods.

nobeans commented 11 years ago

Thank you for your report. It seems being caused from handling standard stream from client by a dedicated thread. I'll try to check it later.

nobeans commented 8 years ago

Fixed already, at v1.0.0 (1a665a8).

jryan128 commented 8 years ago

Great! Thank you so much. Really appreciate it.