public class ShellLauncher
extends java.lang.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 java.lang.Process |
buildProcess(Ruby runtime,
java.lang.String[] args,
java.lang.String[] env,
java.io.File pwd) |
static int |
execAndWait(Ruby runtime,
IRubyObject[] rawArgs) |
static int |
execAndWait(Ruby runtime,
IRubyObject[] rawArgs,
java.util.Map mergeEnv) |
static java.io.File |
findPathExecutable(Ruby runtime,
java.lang.String fname) |
static java.io.File |
findPathExecutable(Ruby runtime,
java.lang.String fname,
IRubyObject pathObject) |
static java.lang.String[] |
getCurrentEnv(Ruby runtime) |
static java.lang.String[] |
getModifiedEnv(Ruby runtime,
java.util.Collection mergeEnv,
boolean clearEnv) |
static long |
getPidFromProcess(java.lang.Process process) |
static ShellLauncher.POpenProcess |
popen(Ruby runtime,
IRubyObject[] strings,
java.util.Map env,
IOOptions modes)
Deprecated.
|
static ShellLauncher.POpenProcess |
popen(Ruby runtime,
IRubyObject[] strings,
java.util.Map env,
ModeFlags modes) |
static ShellLauncher.POpenProcess |
popen(Ruby runtime,
IRubyObject string,
IOOptions modes)
Deprecated.
|
static ShellLauncher.POpenProcess |
popen(Ruby runtime,
IRubyObject string,
java.util.Map env,
ModeFlags modes) |
static ShellLauncher.POpenProcess |
popen(Ruby runtime,
IRubyObject string,
ModeFlags modes) |
static ShellLauncher.POpenProcess |
popen3(Ruby runtime,
IRubyObject[] strings)
Deprecated.
|
static ShellLauncher.POpenProcess |
popen3(Ruby runtime,
IRubyObject[] strings,
boolean addShell)
Deprecated.
|
static long |
reflectPidFromProcess(java.lang.Process process) |
static java.lang.Process |
run(Ruby runtime,
IRubyObject string) |
static java.lang.Process |
run(Ruby runtime,
IRubyObject[] rawArgs,
boolean doExecutableSearch) |
static java.lang.Process |
run(Ruby runtime,
IRubyObject[] rawArgs,
boolean doExecutableSearch,
boolean forceExternalProcess) |
static int |
runAndWait(Ruby runtime,
IRubyObject[] rawArgs) |
static int |
runAndWait(Ruby runtime,
IRubyObject[] rawArgs,
java.io.OutputStream output) |
static int |
runAndWait(Ruby runtime,
IRubyObject[] rawArgs,
java.io.OutputStream output,
boolean doExecutableSearch) |
static long[] |
runAndWaitPid(Ruby runtime,
IRubyObject[] rawArgs) |
static long[] |
runAndWaitPid(Ruby runtime,
IRubyObject[] rawArgs,
java.io.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,
java.util.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 boolean |
shouldUseShell(java.lang.String command) |
static java.io.InputStream |
unwrapBufferedStream(java.io.InputStream filteredStream)
Deprecated.
|
static java.io.OutputStream |
unwrapBufferedStream(java.io.OutputStream filteredStream)
Deprecated.
|
static java.io.InputStream |
unwrapFilterInputStream(java.io.InputStream filteredStream)
Deprecated.
|
static java.io.OutputStream |
unwrapFilterOutputStream(java.io.OutputStream filteredStream)
Deprecated.
|
public static java.lang.String[] getCurrentEnv(Ruby runtime)
public static java.lang.String[] getModifiedEnv(Ruby runtime, java.util.Collection mergeEnv, boolean clearEnv)
public static java.io.File findPathExecutable(Ruby runtime, java.lang.String fname)
public static java.io.File findPathExecutable(Ruby runtime, java.lang.String fname, IRubyObject pathObject)
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, java.util.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 java.lang.Process buildProcess(Ruby runtime, java.lang.String[] args, java.lang.String[] env, java.io.File pwd) throws java.io.IOException
java.io.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, java.util.Map mergeEnv)
public static int runAndWait(Ruby runtime, IRubyObject[] rawArgs, java.io.OutputStream output)
public static int runAndWait(Ruby runtime, IRubyObject[] rawArgs, java.io.OutputStream output, boolean doExecutableSearch)
public static long[] runAndWaitPid(Ruby runtime, IRubyObject[] rawArgs, java.io.OutputStream output, boolean doExecutableSearch)
public static long getPidFromProcess(java.lang.Process process)
public static long reflectPidFromProcess(java.lang.Process process)
public static java.lang.Process run(Ruby runtime, IRubyObject string) throws java.io.IOException
java.io.IOException
public static ShellLauncher.POpenProcess popen(Ruby runtime, IRubyObject string, ModeFlags modes) throws java.io.IOException
java.io.IOException
public static ShellLauncher.POpenProcess popen(Ruby runtime, IRubyObject[] strings, java.util.Map env, ModeFlags modes) throws java.io.IOException
java.io.IOException
public static ShellLauncher.POpenProcess popen(Ruby runtime, IRubyObject string, java.util.Map env, ModeFlags modes) throws java.io.IOException
java.io.IOException
@Deprecated public static ShellLauncher.POpenProcess popen(Ruby runtime, IRubyObject string, IOOptions modes) throws java.io.IOException
java.io.IOException
@Deprecated public static ShellLauncher.POpenProcess popen(Ruby runtime, IRubyObject[] strings, java.util.Map env, IOOptions modes) throws java.io.IOException
java.io.IOException
@Deprecated public static ShellLauncher.POpenProcess popen3(Ruby runtime, IRubyObject[] strings) throws java.io.IOException
java.io.IOException
@Deprecated public static ShellLauncher.POpenProcess popen3(Ruby runtime, IRubyObject[] strings, boolean addShell) throws java.io.IOException
java.io.IOException
public static java.lang.Process run(Ruby runtime, IRubyObject[] rawArgs, boolean doExecutableSearch) throws java.io.IOException
java.io.IOException
public static java.lang.Process run(Ruby runtime, IRubyObject[] rawArgs, boolean doExecutableSearch, boolean forceExternalProcess) throws java.io.IOException
java.io.IOException
public static boolean shouldUseShell(java.lang.String command)
@Deprecated public static java.io.OutputStream unwrapBufferedStream(java.io.OutputStream filteredStream)
@Deprecated public static java.io.InputStream unwrapBufferedStream(java.io.InputStream filteredStream)
@Deprecated public static java.io.OutputStream unwrapFilterOutputStream(java.io.OutputStream filteredStream)
@Deprecated public static java.io.InputStream unwrapFilterInputStream(java.io.InputStream filteredStream)
Copyright © 2001-2018 JRuby. All Rights Reserved.