Skip to content

Commit

Permalink
Merge pull request #6 from apetrelli/master
Browse files Browse the repository at this point in the history
Fix to remove report link when not needed.
  • Loading branch information
wakaleo committed Sep 30, 2011
2 parents 4c455bc + 0edda3f commit 46be4b0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/java/com/wakaleo/schemaspy/SchemaSpyReport.java
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,6 @@ private void addToArguments(final List<String> argList,
@Override
protected void executeReport(Locale locale) throws MavenReportException {

if (runOnExecutionRoot && !project.isExecutionRoot()) {
return;
}

//
// targetDirectory should be set by the maven framework. This is
// jusr for unit testing purposes
Expand Down Expand Up @@ -476,6 +472,11 @@ protected void executeReport(Locale locale) throws MavenReportException {
}
}

@Override
public boolean canGenerateReport() {
return !runOnExecutionRoot || project.isExecutionRoot();
}

@Override
protected String getOutputDirectory() {
return outputDirectory;
Expand Down

0 comments on commit 46be4b0

Please sign in to comment.