Class: Java::VM

Inherits:
Object
  • Object
show all
Defined in:
lib/java/vm.rb

Instance Method Summary collapse

Instance Method Details

#run(classname, options = {}) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/java/vm.rb', line 5

def run(classname, options = {})
  command = [ "java" ]
  include_classpath(command, options)
  command << classname
  include_settings(command, options)
  include_arguments(command, options)
  include_log(command, options)
  include_background(command, options)

  hide_error_stream { sh command.compact.join(' ') }
end