private static Path generateHtml()

in dashboard/src/main/java/com/google/cloud/tools/opensource/dashboard/DashboardMain.java [223:257]


  private static Path generateHtml(
      Bom bom,
      ArtifactCache cache,
      ClassPathResult classPathResult,
      ImmutableSet<LinkageProblem> linkageProblems)
      throws IOException, TemplateException, URISyntaxException {

    Artifact bomArtifact = new DefaultArtifact(bom.getCoordinates());

    Path relativePath =
        outputDirectory(
            bomArtifact.getGroupId(), bomArtifact.getArtifactId(), bomArtifact.getVersion());
    Path output = Files.createDirectories(relativePath);

    copyResource(output, "css/dashboard.css");
    copyResource(output, "js/dashboard.js");

    ImmutableMap<ClassPathEntry, ImmutableSet<LinkageProblem>> linkageProblemTable =
        indexByJar(linkageProblems);

    List<ArtifactResults> table =
        generateReports(
            freemarkerConfiguration, output, cache, linkageProblemTable, classPathResult, bom);

    generateDashboard(
        freemarkerConfiguration,
        output,
        table,
        cache.getGlobalDependencies(),
        linkageProblemTable,
        classPathResult,
        bom);

    return output;
  }