corrected outputFile name to correctly use the target directory from project.getBuild().getDirectory()

Former-commit-id: 7ef2ca45e502e945e7356f9c63845eb4e7b532fc
This commit is contained in:
Jeremy Long
2014-08-16 07:30:34 -04:00
parent abdb3d17f9
commit ae4cc543f6

View File

@@ -299,7 +299,8 @@ public abstract class ReportAggregationMojo extends AbstractMojo implements Mave
if (isMultiModule(proj)) {
continue;
}
File outputFile = new File(proj.getBasedir(), getDataFileName());
//TODO can we get the path from the context?
File outputFile = new File(proj.getBuild().getDirectory(), getDataFileName());
if (outputFile.exists()) {
files.add(outputFile);
} else {