It appears that ScriptingContainer.setWriter() is not working. I’ve
Googled this and it was supposed to have been fixed quite a while back
but some users have still been experiencing problems. If you search
“redirect” on this forum, there appears to be an unresolved post.
Here is some sample code:
jRubyContainer = new
// Output interceptor outputInterceptor = new OutputInterceptor(id, outputQueue); jRubyContainer.setWriter(outputInterceptor);
OutputInterceptor extends java.io.Writer. If I execute a script
puts “Hello, World!”
The output appears on stdout and never makes it to my writer.
FWIW, I’m using JRuby 1.6.7. I’ve tried both jruby-complete and
Any suggestions for a workaround?