|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.enforcer.EnforceMojo
public class EnforceMojo
This goal executes the defined enforcer-rules once per module.
| Field Summary | |
|---|---|
protected static Hashtable |
cache
This is a static variable used to persist the cached results across plugin invocations. |
protected org.codehaus.plexus.PlexusContainer |
container
|
protected boolean |
fail
Flag to fail the build if a version check fails. |
protected boolean |
failFast
Fail on the first rule that doesn't pass |
protected boolean |
ignoreCache
Use this flag to disable rule result caching. |
protected MavenProject |
project
POM |
protected MavenSession |
session
The MavenSession |
protected boolean |
skip
Flag to easily skip all checks |
protected PathTranslator |
translator
Path Translator needed by the ExpressionEvaluator |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
EnforceMojo()
|
|
| Method Summary | |
|---|---|
void |
contextualize(org.codehaus.plexus.context.Context context)
|
void |
execute()
Entry point to the mojo |
MavenProject |
getProject()
|
EnforcerRule[] |
getRules()
|
MavenSession |
getSession()
|
PathTranslator |
getTranslator()
|
boolean |
isFail()
|
boolean |
isFailFast()
|
boolean |
isSkip()
|
void |
setFail(boolean theFail)
|
void |
setFailFast(boolean theFailFast)
|
void |
setProject(MavenProject theProject)
|
void |
setRules(EnforcerRule[] theRules)
|
void |
setSession(MavenSession theSession)
|
void |
setSkip(boolean theSkip)
|
void |
setTranslator(PathTranslator theTranslator)
|
protected boolean |
shouldExecute(EnforcerRule rule)
This method determines if a rule should execute based on the cache |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PathTranslator translator
protected MavenSession session
protected MavenProject project
protected boolean fail
protected boolean skip
protected boolean failFast
protected boolean ignoreCache
protected static Hashtable cache
protected org.codehaus.plexus.PlexusContainer container
| Constructor Detail |
|---|
public EnforceMojo()
| Method Detail |
|---|
public void contextualize(org.codehaus.plexus.context.Context context)
throws org.codehaus.plexus.context.ContextException
contextualize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizableorg.codehaus.plexus.context.ContextException
public void execute()
throws MojoExecutionException
execute in interface MojoMojoExecutionExceptionprotected boolean shouldExecute(EnforcerRule rule)
rule -
public boolean isFail()
public void setFail(boolean theFail)
theFail - the fail to setpublic EnforcerRule[] getRules()
public void setRules(EnforcerRule[] theRules)
theRules - the rules to setpublic boolean isSkip()
public void setSkip(boolean theSkip)
theSkip - the skip to setpublic boolean isFailFast()
public void setFailFast(boolean theFailFast)
theFailFast - the failFast to setpublic MavenProject getProject()
public void setProject(MavenProject theProject)
theProject - the project to setpublic MavenSession getSession()
public void setSession(MavenSession theSession)
theSession - the session to setpublic PathTranslator getTranslator()
public void setTranslator(PathTranslator theTranslator)
theTranslator - the translator to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||