/** * Returns the basic Ruby interpreter command and associated flags (not * application arguments) */ public static List<? extends String> getRubyArgs(final RubyPlatform platform) { RubyExecutionDescriptor desc = new RubyExecutionDescriptor(platform); return getRubyArgs(platform.getHome().getAbsolutePath(), platform.getInterpreterFile().getName(), desc, null); }
private static String dumpRakeTasksInfo(RubyPlatform platform, File pwd, boolean warn) { List<String> argList = new ArrayList<String>(); File cmd = platform.getInterpreterFile(); if (!cmd.getName().startsWith("jruby") || ExecutionUtils.launchJRubyScript()) { // NOI18N argList.add(cmd.getPath());
public RubyProcessCreator(RubyExecutionDescriptor descriptor, String charsetName) { if (descriptor.getCmd() == null) { descriptor.cmd(descriptor.getPlatform().getInterpreterFile()); } descriptor.addBinPath(true); this.descriptor = descriptor; this.charsetName = charsetName; }
if (TEST_RUBY_PROPS != null && !RubyPlatformManager.getDefaultPlatform().getInterpreterFile().equals(interpreter)) { // tests return new Info(TEST_RUBY_PROPS);
RubyPlatform platform = original.getPlatform(); File rcov = new File(platform.getInterpreterFile().getParentFile(), "rcov"); // NOI18N if (!rcov.exists()) { rcov = new File(platform.getInterpreterFile().getParentFile(), "rcov.bat"); // NOI18N if (!rcov.exists()) { rcov = new File(platform.getInterpreterFile().getParentFile(), "rcov.cmd"); // NOI18N if (!rcov.exists()) { Logger.getLogger(RubyCoverageProvider.class.getName()).log(Level.WARNING, "Warning: RCov not found at " + rcov.getPath());