Package org.jruby.util
Class ShellLauncher.LaunchConfig
java.lang.Object
org.jruby.util.ShellLauncher.LaunchConfig
- Enclosing class:
- ShellLauncher
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLaunchConfig(Ruby runtime, IRubyObject[] rawArgs, boolean doExecutableSearch) -
Method Summary
Modifier and TypeMethodDescriptionString[]private static booleanhasRedirection(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 booleanprivate booleanisCmdBuiltin(String cmd) booleanOnly run an in-process script if the script name has "ruby", ".rb", or "irb" in the name.booleanThis 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 booleanshouldVerifyPathExecutable(String cmdline) private voidvoidvoid
-
Field Details
-
runtime
-
doExecutableSearch
private final boolean doExecutableSearch -
rawArgs
-
shell
-
args
-
execArgs
-
cmdBuiltin
private boolean cmdBuiltin -
executable
-
executableFile
-
-
Constructor Details
-
LaunchConfig
-
-
Method Details
-
shouldRunInProcess
public boolean shouldRunInProcess()Only run an in-process script if the script name has "ruby", ".rb", or "irb" in the name. -
shouldRunInShell
public 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. In that case it's better to try passing the bare arguments to runtime.exec. On all other platforms we'll always run the command in the shell. -
isBatch
-
verifyExecutableForShell
public void verifyExecutableForShell() -
verifyExecutableForDirect
public void verifyExecutableForDirect() -
verifyExecutable
private void verifyExecutable() -
getExecArgs
-
isCmdBuiltin
-
hasRedirection
Checks a command string to determine if it has I/O redirection characters that require it to be executed by a command interpreter. -
shouldVerifyPathExecutable
-