OptparsePlus Internal - treat as private
OptparsePlus::ExecutionStrategy for the JVM that uses JVM classes to run the command and get its results.
Methods
    
  
  
  
    
    
    
    
    
    
    
      Instance Public methods
      
        
            
              exception_meaning_command_not_found()
            
            Link
          
          
            Source: show
# File lib/optparse_plus/execution_strategy/jvm.rb, line 21 def exception_meaning_command_not_found NativeException end
            
              run_command(command)
            
            Link
          
          
            Source: show
# File lib/optparse_plus/execution_strategy/jvm.rb, line 7 def run_command(command) process = case command when String then java.lang.Runtime.get_runtime.exec(command) else java.lang.Runtime.get_runtime.exec(*command) end process.get_output_stream.close stdout = input_stream_to_string(process.get_input_stream) stderr = input_stream_to_string(process.get_error_stream) exitstatus = process.wait_for [stdout.chomp,stderr.chomp,OpenStruct.new(:exitstatus => exitstatus)] end