JSR-223's ScriptContext.setWriter() and setErrorWriter() do not redirect output -------------------------------------------------------------------------------
Key: JRUBY-2342 URL: http://jira.codehaus.org/browse/JRUBY-2342 Project: JRuby Issue Type: Bug Components: Embedding Environment: JRuby 1.1RC3 JDK1.6.0 Win32 and Linux The JSR-223 file "jruby-engine.jar" from the jsr223-engines.tar.gz file here: https://scripting.dev.java.net/ Reporter: Bob Jamison I am embedding several JVM-based engines in Inkscape, including JRuby. To redirect the standard output and error streams to my own consoles, I use: ScriptContext context = scriptEngine.getContext(); context.setWriter(someWriter); context.setErrorWriter(someOtherWriter); This works with the jar files for Rhino and Jython. But JRuby's stdout and stderr are still being sent to the console that launched the app. I suspect that the problem lies not in JRuby itself, but in jruby-engine.jar, but I can't tell for certain. The readme.txt file states that the interface was tested with JRuby 1.1.RC2. Thanks! -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email