Package org.sonar.process

Examples of org.sonar.process.ProcessCommands


  public void start(Props props) {
    if (props.valueAsBoolean(ProcessConstants.ENABLE_STOP_COMMAND, false)) {
      // stop application when file <temp>/app.stop is created
      File tempDir = props.nonNullValueAsFile(ProcessConstants.PATH_TEMP);
      ProcessCommands commands = new ProcessCommands(tempDir, "app");
      stopWatcher = new StopWatcher(commands, this);
      stopWatcher.start();
    }
    monitor.start(createCommands(props));
    monitor.awaitTermination();
View Full Code Here


  ProcessRef launch(JavaCommand command) {
    Process process = null;
    try {
      // cleanup existing monitor files
      ProcessCommands commands = new ProcessCommands(command.getTempDir(), command.getKey());
      commands.prepare();

      ProcessBuilder processBuilder = create(command);
      LoggerFactory.getLogger(getClass()).info("Launch process[{}]: {}",
        command.getKey(), StringUtils.join(processBuilder.command(), " "));
      process = processBuilder.start();
View Full Code Here

TOP

Related Classes of org.sonar.process.ProcessCommands

Copyright © 2018 www.massapicom. 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.