runner.loadDefaultTckGroups();
} else {
runner.loadGroups(groups);
}
CmisTestReport report = null;
if (format == null) {
report = new TextReport();
if (output == null) {
output = new File(DEFAULT_REPORT_NAME + ".txt");
}
} else {
format = format.trim().toLowerCase();
if (REPORT_TEXT.equals(format)) {
report = new TextReport();
if (output == null) {
output = new File(DEFAULT_REPORT_NAME + ".txt");
}
} else if (REPORT_XML.equals(format)) {
report = new XmlReport();
if (output == null) {
output = new File(DEFAULT_REPORT_NAME + ".xml");
}
} else if (REPORT_HTML.equals(format)) {
report = new HtmlReport();
if (output == null) {
output = new File(DEFAULT_REPORT_NAME + ".html");
}
} else {
throw new Exception("Unknown format!");
}
}
runner.run(new AntProgressMonitor());
log("CMIS TCK Report: " + output.getAbsolutePath());
report.createReport(runner.getParameters(), runner.getGroups(), output);
} catch (Exception e) {
throw new BuildException("OpenCMIS TCK run failed!", e);
}
}