Class ExternalRules

All Implemented Interfaces:
EnforcerRuleBase

@Named("externalRules") public final class ExternalRules extends AbstractEnforcerRuleConfigProvider
An enforcer rule that will provide rules configuration from an external resource.
Since:
3.2.0
  • Field Details

    • LOCATION_PREFIX_CLASSPATH

      private static final String LOCATION_PREFIX_CLASSPATH
      See Also:
    • location

      private String location
      The external rules location. If it starts with "classpath:", the resource is read from the classpath. Otherwise, it is handled as a filesystem path, either absolute, or relative to ${project.basedir}
    • mojoExecution

      private final org.apache.maven.plugin.MojoExecution mojoExecution
    • evaluator

      private final ExpressionEvaluator evaluator
  • Constructor Details

    • ExternalRules

      @Inject public ExternalRules(org.apache.maven.plugin.MojoExecution mojoExecution, ExpressionEvaluator evaluator)
  • Method Details