private void startProcessing()

in agent/src/jetbrains/buildServer/xmlReportPlugin/XmlReportPlugin.java [202:222]


  private void startProcessing(@NotNull final ProcessingContext processingContext) {
    Thread monitor = processingContext.monitorThread;
    if (isStarted(monitor)) return;
    if (isRulesEmpty(processingContext)) return;

    processingContext.finished = false;
    monitor = new Thread(new Runnable() {
      public void run() {
        while (!processingContext.finished) {
          processAllRules(processingContext);

          try {
            Thread.sleep(500L);
          } catch (InterruptedException e) {
            getBuild().getBuildLogger().exception(e);
          }
        }
      }
    });
    (processingContext.monitorThread = monitor).start();
  }