org.scijava.maven.plugin.enforcer
Class AbstractResolveDependencies

java.lang.Object
  extended by org.scijava.maven.plugin.enforcer.AbstractResolveDependencies
All Implemented Interfaces:
org.apache.maven.enforcer.rule.api.EnforcerRule
Direct Known Subclasses:
BanDuplicateClasses

public abstract class AbstractResolveDependencies
extends Object
implements org.apache.maven.enforcer.rule.api.EnforcerRule

Abstract rule for when the content of the artifacts matters.

Author:
Robert Scholte

Nested Class Summary
protected  class AbstractResolveDependencies.IgnorableDependency
           
 
Constructor Summary
AbstractResolveDependencies()
           
 
Method Summary
protected static String asRegex(String wildcard)
          Convert a wildcard into a regex.
 void execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper)
           
 String getCacheId()
          
protected  org.apache.maven.plugin.logging.Log getLog()
           
protected abstract  void handleArtifacts(Set<org.apache.maven.artifact.Artifact> artifacts)
           
 boolean isCacheable()
          
 boolean isResultValid(org.apache.maven.enforcer.rule.api.EnforcerRule enforcerRule)
          
protected  boolean isSearchTransitive()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractResolveDependencies

public AbstractResolveDependencies()
Method Detail

execute

public void execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper)
             throws org.apache.maven.enforcer.rule.api.EnforcerRuleException
Specified by:
execute in interface org.apache.maven.enforcer.rule.api.EnforcerRule
Throws:
org.apache.maven.enforcer.rule.api.EnforcerRuleException

handleArtifacts

protected abstract void handleArtifacts(Set<org.apache.maven.artifact.Artifact> artifacts)
                                 throws org.apache.maven.enforcer.rule.api.EnforcerRuleException
Throws:
org.apache.maven.enforcer.rule.api.EnforcerRuleException

isSearchTransitive

protected boolean isSearchTransitive()

getLog

protected org.apache.maven.plugin.logging.Log getLog()

isCacheable

public boolean isCacheable()

Specified by:
isCacheable in interface org.apache.maven.enforcer.rule.api.EnforcerRule

isResultValid

public boolean isResultValid(org.apache.maven.enforcer.rule.api.EnforcerRule enforcerRule)

Specified by:
isResultValid in interface org.apache.maven.enforcer.rule.api.EnforcerRule

getCacheId

public String getCacheId()

Specified by:
getCacheId in interface org.apache.maven.enforcer.rule.api.EnforcerRule

asRegex

protected static String asRegex(String wildcard)
Convert a wildcard into a regex.

Parameters:
wildcard - the wildcard to convert.
Returns:
the equivalent regex.


Copyright © 2014–2015 SciJava. All rights reserved.