summaryrefslogtreecommitdiff
path: root/pc.rb
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2012-09-20 10:20:59 +0200
committerAndreas Maunz <andreas@maunz.de>2012-09-20 10:20:59 +0200
commit4ed79098c147209343fc083c1b63f2946fbd6914 (patch)
tree80bc343f0a986849cd8094a334c0eeadb25bbc81 /pc.rb
parent3703fef20c6ce0c6324c2636691438bca047cc85 (diff)
Java doc
Diffstat (limited to 'pc.rb')
-rw-r--r--pc.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/pc.rb b/pc.rb
index 2ef95bb..14a1e76 100644
--- a/pc.rb
+++ b/pc.rb
@@ -79,8 +79,11 @@ post '/pc/AllDescriptors' do
task = OpenTox::Task.create("PC descriptor calculation for dataset ", @uri) do |task|
Rjb.load(nil,["-Xmx64m"]) # start vm
- byteArray = Rjb::import('java.io.ByteArrayOutputStream'); printStream = Rjb::import('java.io.PrintStream');
- out = byteArray.new() ; Rjb::import('java.lang.System').out = printStream.new(out) # joelib is too verbose
+ byteArray = Rjb::import('java.io.ByteArrayOutputStream')
+ printStream = Rjb::import('java.io.PrintStream')
+ out = byteArray.new()
+ Rjb::import('java.lang.System').out = printStream.new(out) # suppress java output
+ Rjb::import('java.lang.System').err = printStream.new(out) # suppress java output
s = Rjb::import('JoelibFc') # import main class
t = Rjb::import('ApplyCDKDescriptors')