use of com.mulesoft.tools.migration.report.html.HTMLReport in project mule-migration-assistant by mulesoft.
the class MigrationJob method generateReport.
private void generateReport(MigrationReport<ReportEntryModel> report, ApplicationModel applicationModel) throws Exception {
List<ReportEntryModel> reportEntries = report.getReportEntries();
for (ReportEntryModel entry : reportEntries) {
try {
entry.setElementLocation();
} catch (Exception ex) {
throw new MigrationJobException("Failed to generate report.", ex);
}
}
HTMLReport htmlReport = new HTMLReport(report, reportPath.toFile(), this.getRunnerVersion());
htmlReport.printReport();
if (jsonReportEnabled) {
applicationModel.getPomModel().ifPresent(p -> report.addConnectors(p));
JSONReport jsonReport = new JSONReport(report, reportPath.toFile(), outputProject);
jsonReport.printReport();
}
}
Aggregations