public ExecutionResult execute()

in plugin/src/main/java/com/attachme/plugin/AttachmeRunner.java [35:58]


  public ExecutionResult execute(Executor executor, @NotNull ProgramRunner runner) throws ExecutionException {
    AttachmeServer.Console logger = new AttachmeServer.Console() {
      @Override
      public void info(String str) {
        procHandler.notifyTextAvailable(str + System.lineSeparator(), ProcessOutputType.STDOUT);
      }

      @Override
      public void error(String str) {
        procHandler.notifyTextAvailable(str + System.lineSeparator(), ProcessOutputType.STDERR);
      }
    };
    Thread thread = AttachmeServer.makeThread(runConf.getPort(), this, logger);
    this.procHandler = new MProcHandler(thread);
    ConsoleViewImpl console = new ConsoleViewImpl(this.project, false);
    console.attachToProcess(this.procHandler);
    thread.start();
    try {
      new AttachmeInstaller(logger).verifyInstallation();
    } catch (IOException e) {
      throw new ExecutionException("Could not install attachme files", e);
    }
    return new DefaultExecutionResult(console, this.procHandler);
  }