posted 16 years ago
Hi,
I am using jsr223 to compile scripts custom made in a swing application.
Everything is working fine however it would be nice to display the output of the scripts to the user, as currently the output is just being shown in the console.
e.g user creates very simple script in jruby
def fun
puts('hello')
end
hello
this will output hello, but the ran output goes directly to the console when I would like to output it via my swing application.
I have googled around and for some reason cannot find anything on this topic, is it possible to capture the output? or to tell it to output somewhere else?
Any help would be greatly appreciated.
Thank you,
John