Package org.jruby.util
Class ShellLauncher.LaunchConfig
java.lang.Object
org.jruby.util.ShellLauncher.LaunchConfig
- Enclosing class:
ShellLauncher
-
Constructor Summary
ConstructorsConstructorDescriptionLaunchConfig
(Ruby runtime, IRubyObject[] rawArgs, boolean doExecutableSearch) -
Method Summary
Modifier and TypeMethodDescriptionString[]
boolean
Only run an in-process script if the script name has "ruby", ".rb", or "irb" in the name.boolean
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.void
void
-
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. -
verifyExecutableForShell
public void verifyExecutableForShell() -
verifyExecutableForDirect
public void verifyExecutableForDirect() -
getExecArgs
-