Class ShellLauncher.LaunchConfig

java.lang.Object
org.jruby.util.ShellLauncher.LaunchConfig
Enclosing class:
ShellLauncher

public static class ShellLauncher.LaunchConfig extends Object
  • Constructor Details

    • LaunchConfig

      public LaunchConfig(Ruby runtime, IRubyObject[] rawArgs, boolean doExecutableSearch)
  • 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

      public String[] getExecArgs()