public class ShellLauncher extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ShellLauncher.LaunchConfig |
static class |
ShellLauncher.POpenProcess |
Constructor and Description |
---|
ShellLauncher() |
Modifier and Type | Method and Description |
---|---|
static Process |
buildProcess(Ruby runtime,
String[] args,
String[] env,
File pwd) |
static int |
execAndWait(Ruby runtime,
IRubyObject[] rawArgs) |
static int |
execAndWait(Ruby runtime,
IRubyObject[] rawArgs,
Map mergeEnv) |
static String[] |
getCurrentEnv(Ruby runtime) |
static long |
getPidFromProcess(Process process) |
static ShellLauncher.POpenProcess |
popen(Ruby runtime,
IRubyObject[] strings,
Map env,
IOOptions modes)
Deprecated.
|
static ShellLauncher.POpenProcess |
popen(Ruby runtime,
IRubyObject[] strings,
Map env,
ModeFlags modes) |
static ShellLauncher.POpenProcess |
popen(Ruby runtime,
IRubyObject string,
IOOptions modes)
Deprecated.
|
static ShellLauncher.POpenProcess |
popen(Ruby runtime,
IRubyObject string,
ModeFlags modes) |
static ShellLauncher.POpenProcess |
popen3(Ruby runtime,
IRubyObject[] strings) |
static ShellLauncher.POpenProcess |
popen3(Ruby runtime,
IRubyObject[] strings,
boolean addShell) |
static long |
reflectPidFromProcess(Process process) |
static Process |
run(Ruby runtime,
IRubyObject string) |
static Process |
run(Ruby runtime,
IRubyObject[] rawArgs,
boolean doExecutableSearch) |
static Process |
run(Ruby runtime,
IRubyObject[] rawArgs,
boolean doExecutableSearch,
boolean forceExternalProcess) |
static int |
runAndWait(Ruby runtime,
IRubyObject[] rawArgs) |
static int |
runAndWait(Ruby runtime,
IRubyObject[] rawArgs,
OutputStream output) |
static int |
runAndWait(Ruby runtime,
IRubyObject[] rawArgs,
OutputStream output,
boolean doExecutableSearch) |
static long[] |
runAndWaitPid(Ruby runtime,
IRubyObject[] rawArgs) |
static long[] |
runAndWaitPid(Ruby runtime,
IRubyObject[] rawArgs,
OutputStream output,
boolean doExecutableSearch) |
static long |
runExternal(Ruby runtime,
IRubyObject env,
IRubyObject prog,
IRubyObject options,
IRubyObject args,
boolean wait) |
static int |
runExternalAndWait(Ruby runtime,
IRubyObject[] rawArgs,
Map mergeEnv) |
static long |
runExternalWithoutWait(Ruby runtime,
IRubyObject[] rawArgs) |
static long |
runExternalWithoutWait(Ruby runtime,
IRubyObject env,
IRubyObject prog,
IRubyObject options,
IRubyObject args) |
static long |
runWithoutWait(Ruby runtime,
IRubyObject[] rawArgs) |
static InputStream |
unwrapBufferedStream(InputStream filteredStream)
Unwrap all filtering streams between the given stream and its actual
unfiltered stream.
|
static OutputStream |
unwrapBufferedStream(OutputStream filteredStream)
Unwrap all filtering streams between the given stream and its actual
unfiltered stream.
|
public static int runAndWait(Ruby runtime, IRubyObject[] rawArgs)
public static long[] runAndWaitPid(Ruby runtime, IRubyObject[] rawArgs)
public static long runWithoutWait(Ruby runtime, IRubyObject[] rawArgs)
public static int runExternalAndWait(Ruby runtime, IRubyObject[] rawArgs, Map mergeEnv)
public static long runExternalWithoutWait(Ruby runtime, IRubyObject env, IRubyObject prog, IRubyObject options, IRubyObject args)
public static long runExternal(Ruby runtime, IRubyObject env, IRubyObject prog, IRubyObject options, IRubyObject args, boolean wait)
public static Process buildProcess(Ruby runtime, String[] args, String[] env, File pwd) throws IOException
IOException
public static long runExternalWithoutWait(Ruby runtime, IRubyObject[] rawArgs)
public static int execAndWait(Ruby runtime, IRubyObject[] rawArgs)
public static int execAndWait(Ruby runtime, IRubyObject[] rawArgs, Map mergeEnv)
public static int runAndWait(Ruby runtime, IRubyObject[] rawArgs, OutputStream output)
public static int runAndWait(Ruby runtime, IRubyObject[] rawArgs, OutputStream output, boolean doExecutableSearch)
public static long[] runAndWaitPid(Ruby runtime, IRubyObject[] rawArgs, OutputStream output, boolean doExecutableSearch)
public static long getPidFromProcess(Process process)
public static long reflectPidFromProcess(Process process)
public static Process run(Ruby runtime, IRubyObject string) throws IOException
IOException
public static ShellLauncher.POpenProcess popen(Ruby runtime, IRubyObject string, ModeFlags modes) throws IOException
IOException
public static ShellLauncher.POpenProcess popen(Ruby runtime, IRubyObject[] strings, Map env, ModeFlags modes) throws IOException
IOException
@Deprecated public static ShellLauncher.POpenProcess popen(Ruby runtime, IRubyObject string, IOOptions modes) throws IOException
IOException
@Deprecated public static ShellLauncher.POpenProcess popen(Ruby runtime, IRubyObject[] strings, Map env, IOOptions modes) throws IOException
IOException
public static ShellLauncher.POpenProcess popen3(Ruby runtime, IRubyObject[] strings) throws IOException
IOException
public static ShellLauncher.POpenProcess popen3(Ruby runtime, IRubyObject[] strings, boolean addShell) throws IOException
IOException
public static OutputStream unwrapBufferedStream(OutputStream filteredStream)
filteredStream
- The stream to unwrappublic static InputStream unwrapBufferedStream(InputStream filteredStream)
filteredStream
- The stream to unwrappublic static Process run(Ruby runtime, IRubyObject[] rawArgs, boolean doExecutableSearch) throws IOException
IOException
public static Process run(Ruby runtime, IRubyObject[] rawArgs, boolean doExecutableSearch, boolean forceExternalProcess) throws IOException
IOException
Copyright © 2001-2015 JRuby. All Rights Reserved.