Skip to content

Commit

Permalink
If no files are ignored, the report is not generated.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradsdavis committed Feb 5, 2015
1 parent d16065a commit 7c63cd0
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -19,6 +19,7 @@
import org.jboss.windup.reporting.model.IgnoredFilesReportModel;
import org.jboss.windup.reporting.model.TemplateType;
import org.jboss.windup.reporting.service.ReportService;
import org.jboss.windup.rules.apps.java.ip.StaticIPLocationModel;
import org.jboss.windup.rules.apps.java.model.WindupJavaConfigurationModel;
import org.ocpsoft.rewrite.config.ConditionBuilder;
import org.ocpsoft.rewrite.config.Configuration;
Expand Down Expand Up @@ -46,9 +47,6 @@ public Class<? extends RulePhase> getPhase()
@Override
public Configuration getConfiguration(GraphContext context)
{
ConditionBuilder applicationProjectModelsFound = Query
.fromType(WindupJavaConfigurationModel.class);

AbstractIterationOperation<WindupJavaConfigurationModel> addApplicationReport = new AbstractIterationOperation<WindupJavaConfigurationModel>()
{
@Override
Expand All @@ -69,7 +67,7 @@ public String toString()

return ConfigurationBuilder.begin()
.addRule()
.when(applicationProjectModelsFound)
.when(Query.fromType(IgnoredFilesReportModel.class))
.perform(addApplicationReport);

}
Expand Down

0 comments on commit 7c63cd0

Please sign in to comment.