|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugins.enforcer.AbstractStandardEnforcerRule org.apache.maven.plugins.enforcer.AbstractNonCacheableEnforcerRule org.apache.maven.plugins.enforcer.AbstractBanDependencies
public abstract class AbstractBanDependencies
Abstract Rule for banning dependencies.
Field Summary |
---|
Fields inherited from class org.apache.maven.plugins.enforcer.AbstractStandardEnforcerRule |
---|
message |
Constructor Summary | |
---|---|
AbstractBanDependencies()
|
Method Summary | |
---|---|
protected abstract Set<Artifact> |
checkDependencies(Set<Artifact> dependencies,
Log log)
Checks the set of dependencies against the list of excludes. |
void |
execute(EnforcerRuleHelper helper)
Execute the rule. |
protected Set<Artifact> |
getDependenciesToCheck(MavenProject project)
|
protected CharSequence |
getErrorMessage(Artifact artifact)
|
String |
getMessage()
Gets the message. |
boolean |
isSearchTransitive()
Checks if is search transitive. |
void |
setMessage(String theMessage)
Sets the message. |
void |
setSearchTransitive(boolean theSearchTransitive)
Sets the search transitive. |
Methods inherited from class org.apache.maven.plugins.enforcer.AbstractNonCacheableEnforcerRule |
---|
getCacheId, isCacheable, isResultValid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractBanDependencies()
Method Detail |
---|
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
helper
- the helper
EnforcerRuleException
- the enforcer rule exceptionprotected CharSequence getErrorMessage(Artifact artifact)
protected Set<Artifact> getDependenciesToCheck(MavenProject project)
protected abstract Set<Artifact> checkDependencies(Set<Artifact> dependencies, Log log) throws EnforcerRuleException
dependencies
- the dependencieslog
- the log
EnforcerRuleException
- the enforcer rule exceptionpublic String getMessage()
public void setMessage(String theMessage)
theMessage
- the message to setpublic boolean isSearchTransitive()
public void setSearchTransitive(boolean theSearchTransitive)
theSearchTransitive
- the searchTransitive to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |