Class: Java::VM
- Inherits:
-
Object
- Object
- Java::VM
- 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, = {}) command = [ "java" ] include_classpath(command, ) command << classname include_settings(command, ) include_arguments(command, ) include_log(command, ) include_background(command, ) hide_error_stream { sh command.compact.join(' ') } end |