public static class ShellLauncher.LaunchConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String[] |
args |
private boolean |
cmdBuiltin |
private boolean |
doExecutableSearch |
private java.lang.String[] |
execArgs |
private java.lang.String |
executable |
private java.io.File |
executableFile |
private IRubyObject[] |
rawArgs |
private Ruby |
runtime |
private java.lang.String |
shell |
| Constructor and Description |
|---|
LaunchConfig(Ruby runtime,
IRubyObject[] rawArgs,
boolean doExecutableSearch) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getExecArgs() |
private static boolean |
hasRedirection(java.lang.String cmdline)
Checks a command string to determine if it has I/O redirection
characters that require it to be executed by a command interpreter.
|
private static boolean |
isBatch(java.io.File f) |
private boolean |
isCmdBuiltin(java.lang.String cmd) |
boolean |
shouldRunInProcess()
Only run an in-process script if the script name has "ruby", ".rb",
or "irb" in the name.
|
boolean |
shouldRunInShell()
This hack is to work around a problem with cmd.exe on windows where it can't
interpret a filename with spaces in the first argument position as a command.
|
private static boolean |
shouldVerifyPathExecutable(java.lang.String cmdline) |
private void |
verifyExecutable() |
void |
verifyExecutableForDirect() |
void |
verifyExecutableForShell() |
private Ruby runtime
private boolean doExecutableSearch
private IRubyObject[] rawArgs
private java.lang.String shell
private java.lang.String[] args
private java.lang.String[] execArgs
private boolean cmdBuiltin
private java.lang.String executable
private java.io.File executableFile
public LaunchConfig(Ruby runtime, IRubyObject[] rawArgs, boolean doExecutableSearch)
public boolean shouldRunInProcess()
public boolean shouldRunInShell()
public void verifyExecutableForShell()
public void verifyExecutableForDirect()
private void verifyExecutable()
public java.lang.String[] getExecArgs()
private static boolean isBatch(java.io.File f)
private boolean isCmdBuiltin(java.lang.String cmd)
private static boolean hasRedirection(java.lang.String cmdline)
private static boolean shouldVerifyPathExecutable(java.lang.String cmdline)