Skip to content

Commit ca486d5

Browse files
Writing out report when there are no God classes
Writing out report when there are no God classes found to prevent the user from wondering if the report ran successfully.
1 parent 1df641f commit ca486d5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

refactor-first-maven-plugin/src/main/java/org/hjug/mavenreport/RefactorFirstMavenReport.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ public void execute() {
184184
" </div>\n" +
185185
" </body>\n" +
186186
"</html>\n");
187+
writeReportToDisk(filename, stringBuilder);
187188
return;
188189
}
189190

@@ -260,6 +261,10 @@ public void execute() {
260261

261262
log.info(stringBuilder.toString());
262263

264+
writeReportToDisk(filename, stringBuilder);
265+
}
266+
267+
private void writeReportToDisk(String filename, StringBuilder stringBuilder) {
263268
String reportOutputDirectory = project.getModel().getReporting().getOutputDirectory();
264269
File reportOutputDir = new File(reportOutputDirectory);
265270
if(!reportOutputDir.exists()) {

0 commit comments

Comments
 (0)