use of org.gradle.reporting.HtmlPageBuilder in project gradle by gradle.
the class BuildDashboardGenerator method render.
@Override
public void render(Collection<Report> reports, final File outputFile) {
this.reports = new TreeSet<Report>(new Comparator<Report>() {
public int compare(Report o1, Report o2) {
return o1.getDisplayName().compareTo(o2.getDisplayName());
}
});
this.reports.addAll(reports);
this.outputFile = outputFile;
HtmlReportRenderer renderer = new HtmlReportRenderer();
renderer.renderRawSinglePage(reports, new ReportRenderer<Collection<Report>, HtmlPageBuilder<Writer>>() {
@Override
public void render(Collection<Report> model, HtmlPageBuilder<Writer> builder) throws IOException {
generate(builder);
}
}, outputFile);
}
Aggregations