show java runtime version

This commit is contained in:
Colin Surprenant 2013-06-18 14:59:12 -04:00
parent 430a0ec50b
commit 1bd89c3431
1 changed files with 4 additions and 0 deletions

View File

@ -1,4 +1,7 @@
require 'java'
require 'red_storm'
java_import 'java.lang.System'
# this example topology only prints the Ruby version string. No tuple is emitted.
@ -12,6 +15,7 @@ module RedStorm
log.info("***************** JRUBY_VERSION=#{JRUBY_VERSION}")
log.info("***************** RUBY_ENGINE=#{RUBY_ENGINE}")
log.info("***************** RUBY_PLATFORM=#{RUBY_PLATFORM}")
log.info("***************** JAVA VERSION=#{System.properties["java.runtime.version"]}")
end
on_send {}
end