5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/selenium-grid/lib/ruby/java/vm.rb', line 5
def run(classname, options)
command = [ "java" ]
command << "-cp \"#{options[:classpath]}\""
command << classname
command << jvm_properties(options[:properties])
command << options[:args].join(' ') if options[:args]
command << ">\"#{options[:log_file]}\" 2>&1" if options[:log_file]
if options[:background]
if PLATFORM['win32']
command.unshift("start")
else
command << "&"
end
end
sh command.join(' ')
end
|