|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 java.util.Set |
checkDependencies(java.util.Set dependencies,
org.apache.maven.plugin.logging.Log log)
Checks the set of dependencies against the list of excludes. |
void |
execute(EnforcerRuleHelper helper)
Execute the rule. |
protected java.util.Set |
getDependenciesToCheck(org.apache.maven.project.MavenProject project)
|
protected java.lang.CharSequence |
getErrorMessage(org.apache.maven.artifact.Artifact artifact)
|
java.lang.String |
getMessage()
Gets the message. |
boolean |
isSearchTransitive()
Checks if is search transitive. |
void |
setMessage(java.lang.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 java.lang.CharSequence getErrorMessage(org.apache.maven.artifact.Artifact artifact)
protected java.util.Set getDependenciesToCheck(org.apache.maven.project.MavenProject project)
protected abstract java.util.Set checkDependencies(java.util.Set dependencies,
org.apache.maven.plugin.logging.Log log)
throws EnforcerRuleException
dependencies - the dependencieslog - the log
EnforcerRuleException - the enforcer rule exceptionpublic java.lang.String getMessage()
public void setMessage(java.lang.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 | |||||||||