LogFormat format = SpringBeanLogFormatLoader.getLogFormat(appCtxt);
final ReportPrinter reportPrinter = createReportPrinter(cmd, format);
final ReportEngine reportEngine = createReportEngine(cmd, format);
reportPrinter.setReportEngine(reportEngine);
reportEngine.setReportPrinter(reportPrinter);
String[] reportValues = cmd.getOptionValues("r");
if (reportValues == null) {
throw new RuntimeException("no report specified");
}
List<String> v = new ArrayList<String>(Arrays.asList(reportValues));
List<String> filenames = unfutzArgs(v);
log.info("reports " + v);
log.info("files " + filenames);
reportEngine.setReportDescriptions(v);
List<File> commandFiles = commandFiles(filenames);
reportEngine.initialise();
reportEngine.process(commandFiles);
reportEngine.completed();
}