Package com.intellij.execution.configurations

Examples of com.intellij.execution.configurations.GeneralCommandLine.addParameters()


                        commandLine.setWorkDirectory(parameters.getWorkingDirectory());

                        List<String> options = new ArrayList<String>();
                        options.add("-i" + GHCUtil.rootsAsString(configuration.getModule(), false));
                        //GHCUtil.getGhcOptions(null, options); // todo!!!
                        commandLine.addParameters(options);
                        commandLine.addParameter(mainFile); // todo
                        commandLine.addParameters(parameters.getProgramParametersList().getParameters());
                        // todo: set other parameters/rt flags

                        return commandLine;
View Full Code Here


                        List<String> options = new ArrayList<String>();
                        options.add("-i" + GHCUtil.rootsAsString(configuration.getModule(), false));
                        //GHCUtil.getGhcOptions(null, options); // todo!!!
                        commandLine.addParameters(options);
                        commandLine.addParameter(mainFile); // todo
                        commandLine.addParameters(parameters.getProgramParametersList().getParameters());
                        // todo: set other parameters/rt flags

                        return commandLine;
                    } catch (CantRunException e) {
                        throw new RuntimeException(e);
View Full Code Here

    cmdLine.setExePath(toSystemDependentName(executablePath));
    if (workingDir != null) {
      cmdLine.setWorkDirectory(toSystemDependentName(workingDir));
    }
    cmdLine.addParameters(arguments);

    return cmdLine;
  }

View Full Code Here

    final String[] pubParameters = calculatePubParameters(module.getProject());

    if (pubParameters != null) {
      final GeneralCommandLine command = new GeneralCommandLine().withWorkDirectory(pubspecYamlFile.getParent().getPath());
      command.setExePath(pubFile.getPath());
      command.addParameters(pubParameters);

      doPerformPubAction(module, pubspecYamlFile, command, getTitle());
    }
  }
View Full Code Here

    @Override
    protected OSProcessHandler startProcess() throws ExecutionException {
        GeneralCommandLine commandLine = new GeneralCommandLine();
        commandLine.setExePath(mySettings.leiningenPath);
        commandLine.addParameters(myParameters.getGoals());
        commandLine.setWorkDirectory(myParameters.getWorkingDirectory());
        return new ColoredProcessHandler(commandLine.createProcess(), commandLine.getCommandLineString(),
                EncodingManager.getInstance().getDefaultCharset());
    }
}
View Full Code Here

    List<String> split = ContainerUtil.list(configuration.getCommand().split("\\s+"));
    if (configuration.isSkipDependencies() && !split.contains("skip_deps=true")) {
      commandLine.addParameter("skip_deps=true");
    }
    commandLine.addParameters(split);

    return commandLine;
  }

  public static OSProcessHandler runRebar(Project project, GeneralCommandLine commandLine) throws ExecutionException {
View Full Code Here

    }

    GeneralCommandLine cmd = new GeneralCommandLine();
    cmd.setWorkDirectory(workDir);
    cmd.setExePath(exePath);
    cmd.addParameters(arguments);

    return execute(cmd, timeout);
  }

  @NotNull
View Full Code Here

            "<br/><a href='configure'>Configure</a>",
          NotificationType.WARNING, new ErlangExternalToolsNotificationListener(project)), project);
        return;
      }
      commandLine.setExePath(emacsPath);
      commandLine.addParameters("--batch", "--eval");

      String sdkPath = getSdkPath(project);

      if (StringUtil.isEmpty(sdkPath)) {
        Notifications.Bus.notify(
View Full Code Here

    Project project = myConfig.getProject();
    Module module = myConfig.getConfigurationModule().getModule();
    GeneralCommandLine commandLine = new GeneralCommandLine();
    commandLine.setExePath(ErlangConsoleUtil.getErlPath(project, module));
    String consoleArgs = myConfig.getConsoleArgs();
    commandLine.addParameters(StringUtil.split(consoleArgs, " "));
    commandLine.addParameters(ErlangConsoleUtil.getCodePath(project, module, false));
    commandLine.setWorkDirectory(ErlangConsoleUtil.getWorkingDirPath(project, myConfig.getWorkingDirPath()));
    OSProcessHandler handler = new OSProcessHandler(commandLine.createProcess(), commandLine.getCommandLineString());
    ProcessTerminatedListener.attach(handler);
    return handler;
View Full Code Here

    Module module = myConfig.getConfigurationModule().getModule();
    GeneralCommandLine commandLine = new GeneralCommandLine();
    commandLine.setExePath(ErlangConsoleUtil.getErlPath(project, module));
    String consoleArgs = myConfig.getConsoleArgs();
    commandLine.addParameters(StringUtil.split(consoleArgs, " "));
    commandLine.addParameters(ErlangConsoleUtil.getCodePath(project, module, false));
    commandLine.setWorkDirectory(ErlangConsoleUtil.getWorkingDirPath(project, myConfig.getWorkingDirPath()));
    OSProcessHandler handler = new OSProcessHandler(commandLine.createProcess(), commandLine.getCommandLineString());
    ProcessTerminatedListener.attach(handler);
    return handler;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.