org.jruby.util
Class ShellLauncher

java.lang.Object
  extended by org.jruby.util.ShellLauncher

public class ShellLauncher
extends java.lang.Object

This mess of a class is what happens when all Java gives you is Runtime.getRuntime().exec(). Thanks dude, that really helped.

Author:
nicksieger

Nested Class Summary
static class ShellLauncher.POpenProcess
           
 
Constructor Summary
ShellLauncher()
           
 
Method Summary
static int execAndWait(Ruby runtime, IRubyObject[] rawArgs)
           
static java.lang.Process popen(Ruby runtime, IRubyObject string, ModeFlags modes)
           
static java.lang.Process run(Ruby runtime, IRubyObject string)
           
static java.lang.Process run(Ruby runtime, IRubyObject[] rawArgs)
           
static int runAndWait(Ruby runtime, IRubyObject[] rawArgs)
           
static int runAndWait(Ruby runtime, IRubyObject[] rawArgs, java.io.OutputStream output)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShellLauncher

public ShellLauncher()
Method Detail

runAndWait

public static int runAndWait(Ruby runtime,
                             IRubyObject[] rawArgs)

execAndWait

public static int execAndWait(Ruby runtime,
                              IRubyObject[] rawArgs)

runAndWait

public static int runAndWait(Ruby runtime,
                             IRubyObject[] rawArgs,
                             java.io.OutputStream output)

run

public static java.lang.Process run(Ruby runtime,
                                    IRubyObject string)
                             throws java.io.IOException
Throws:
java.io.IOException

popen

public static java.lang.Process popen(Ruby runtime,
                                      IRubyObject string,
                                      ModeFlags modes)
                               throws java.io.IOException
Throws:
java.io.IOException

run

public static java.lang.Process run(Ruby runtime,
                                    IRubyObject[] rawArgs)
                             throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2002-2007 JRuby Team. All Rights Reserved.