fileSet.setProject(mxtest.getProject());
fileSet.setDir(mxtest.getUnitTestOutputDir());
fileSet.setIncludes("TEST-*.xml");
junitReport.addFileSet(fileSet);
AggregateTransformer report = junitReport.createReport();
// configure properties from Moxie file
MaxmlMap reportAttributes = mxtest.getBuild().getConfig().getTaskAttributes("junitreport");
if (reportAttributes != null) {
AttributeReflector.setAttributes(mxtest.getProject(), report, reportAttributes);
}
report.setTodir(mxtest.getTestReports());
junitReport.setTodir(mxtest.getUnitTestOutputDir());
junitReport.execute();
}