store.commitTransaction();
}
}
private JUnitReportWriter getJunitReportWriter(MavenProject baseProject) throws MojoExecutionException {
JUnitReportWriter junitReportWriter;
if (junitReportDirectory == null) {
junitReportDirectory = new File(baseProject.getBuild().getDirectory() + "/surefire-reports");
}
junitReportDirectory.mkdirs();
try {
junitReportWriter = new JUnitReportWriter(junitReportDirectory);
} catch (AnalysisListenerException e) {
throw new MojoExecutionException("Cannot create XML report file writer.", e);
}
return junitReportWriter;
}