logger.info("transforming models into metamodel");
modi.transformArchitectsModel(MoDi.Language.JAVA);
modi.transformDevelopersModel(MoDi.Language.JAVA);
logger.info("evaluating the differences.");
IReport report = modi.evaluate();
String projectName = Config.getStringProperty("MoDi.Meta.Project.Name");
report.setArchitect(
Config.getStringProperty("MoDi.Meta.Architect"));
report.setArchitectsModelVersion(projectName + ": " + amRoot);
report.setDeveloper(
Config.getStringProperty("MoDi.Meta.Developer"));
report.setDevelopersModelVersion(projectName + ": " + dmRoot);
logger.info("reporting");
modi.report(report, MoDi.ReportStyle.CONSOLE);
// modi.report(report, MoDi.ReportStyle.XML);
modi.report(report, MoDi.ReportStyle.HTML); // html implies xml
logger.info("communicating");
modi.communicate(report); // communication needs html report
logger.info(report.getDifferences().size() + " differences found.");
long duration = start + System.currentTimeMillis();
logger.info("Done (" + duration + " ms).");
} catch (MoDiException e) {
System.out.println(e.getMessage());