private void runArtifactTasks(List<BuildTask> tasks, ArtifactBuildTaskProvider.ArtifactBuildPhase phase) throws ProjectBuildException {
      if (!tasks.isEmpty()) {
        context.processMessage(new ProgressMessage(JpsBuildBundle.message("progress.message.running.0.tasks.for.1.artifact",
                                                                          phase.ordinal(), artifact.getName())));
        for (BuildTask task : tasks) {
          context.checkCanceled();
          task.build(context);
        }
      }
    }
private void runArtifactTasks(List<BuildTask> tasks, ArtifactBuildTaskProvider.ArtifactBuildPhase phase)