|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.codehaus.groovy.maven.mojo.GroovyMojo
org.codehaus.mojo.findbugs.FindbugsViolationCheckMojo
public class FindbugsViolationCheckMojo
Fail the build if there were any FindBugs violations in the source code. An XML report is put out by default in the target directory with the errors. To see more documentation about FindBugs' options, please see the FindBugs Manual.
| Field Summary |
|---|
| Fields inherited from class org.codehaus.groovy.maven.mojo.GroovyMojo |
|---|
__timeStamp, __timeStamp__239_neverHappen1218741132868, sanitizeErrors |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
FindbugsViolationCheckMojo()
|
|
| Method Summary | |
|---|---|
protected void |
addClasspathEntriesToFindBugsProject(edu.umd.cs.findbugs.Project findBugsProject)
Adds the dependend libraries of the project to the findbugs aux classpath. |
protected void |
addClassScreenerToFindBugs(edu.umd.cs.findbugs.FindBugs2 findBugs)
Adds the specified plugins to findbugs. |
protected void |
addFiltersToFindBugs(edu.umd.cs.findbugs.FindBugs2 findBugs)
Adds the specified filters of the project to the findbugs. |
protected void |
addPluginsToFindBugs()
Adds the specified plugins to findbugs. |
protected void |
addVisitorsToFindBugs(edu.umd.cs.findbugs.config.UserPreferences preferences)
Adds the specified visitors to findbugs. |
void |
execute()
|
static java.lang.String |
getBUNDLE_NAME()
|
java.util.ResourceBundle |
getBundle()
|
java.io.File |
getClassFilesDirectory()
|
java.lang.Boolean |
getDebug()
|
java.lang.String |
getEffort()
|
protected EffortParameter |
getEffortParameter()
Returns the effort parameter to use. |
java.lang.String |
getExcludeFilterFile()
|
boolean |
getFailOnError()
|
static java.lang.String |
getFINDBUGS_COREPLUGIN()
|
java.io.File |
getFindbugsCheckOutputDirectory()
|
java.lang.String |
getIncludeFilterFile()
|
static java.lang.String |
getJAVA_REGEX_PATTERN()
|
groovy.lang.MetaClass |
getMetaClass()
|
java.lang.String |
getOmitVisitors()
|
java.lang.String |
getOnlyAnalyze()
|
java.util.ArrayList |
getPluginArtifacts()
|
java.lang.String |
getPluginList()
|
static boolean |
getPluginLoaded()
|
org.apache.maven.project.MavenProject |
getProject()
|
java.lang.Object |
getProperty(java.lang.String name)
|
java.lang.Boolean |
getRelaxed()
|
org.codehaus.plexus.resource.ResourceManager |
getResourceManager()
|
boolean |
getSkip()
|
java.lang.String |
getThreshold()
|
protected ThresholdParameter |
getThresholdParameter()
Returns the threshold parameter to use. |
java.lang.String |
getVisitors()
|
java.lang.Object |
invokeMethod(java.lang.String name,
java.lang.Object args)
|
boolean |
isFailOnError()
|
static boolean |
isPluginLoaded()
|
boolean |
isSkip()
|
void |
setBundle(java.util.ResourceBundle value)
|
void |
setClassFilesDirectory(java.io.File value)
|
void |
setDebug(java.lang.Boolean value)
|
void |
setEffort(java.lang.String value)
|
void |
setExcludeFilterFile(java.lang.String value)
|
void |
setFailOnError(boolean value)
|
void |
setFindbugsCheckOutputDirectory(java.io.File value)
|
protected void |
setFindBugsDebug(edu.umd.cs.findbugs.FindBugs2 findBugs)
Sets the Debug Level |
void |
setIncludeFilterFile(java.lang.String value)
|
void |
setMetaClass(groovy.lang.MetaClass metaClass)
|
void |
setOmitVisitors(java.lang.String value)
|
void |
setOnlyAnalyze(java.lang.String value)
|
void |
setPluginArtifacts(java.util.ArrayList value)
|
void |
setPluginList(java.lang.String value)
|
static void |
setPluginLoaded(boolean value)
|
void |
setProject(org.apache.maven.project.MavenProject value)
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
|
void |
setRelaxed(java.lang.Boolean value)
|
void |
setResourceManager(org.codehaus.plexus.resource.ResourceManager value)
|
void |
setSkip(boolean value)
|
void |
setThreshold(java.lang.String value)
|
void |
setVisitors(java.lang.String value)
|
| Methods inherited from class org.codehaus.groovy.maven.mojo.GroovyMojo |
|---|
afterExecute, beforeExecute, fail, fail, getAnt |
| 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 |
| Constructor Detail |
|---|
public FindbugsViolationCheckMojo()
| Method Detail |
|---|
public static final java.lang.String getBUNDLE_NAME()
public static final java.lang.String getFINDBUGS_COREPLUGIN()
public static final java.lang.String getJAVA_REGEX_PATTERN()
public java.io.File getClassFilesDirectory()
public void setClassFilesDirectory(java.io.File value)
public java.lang.Boolean getDebug()
public void setDebug(java.lang.Boolean value)
public java.lang.String getVisitors()
public void setVisitors(java.lang.String value)
public java.lang.String getOmitVisitors()
public void setOmitVisitors(java.lang.String value)
public java.util.ArrayList getPluginArtifacts()
public void setPluginArtifacts(java.util.ArrayList value)
public java.lang.String getEffort()
public void setEffort(java.lang.String value)
public java.io.File getFindbugsCheckOutputDirectory()
public void setFindbugsCheckOutputDirectory(java.io.File value)
public java.lang.String getOnlyAnalyze()
public void setOnlyAnalyze(java.lang.String value)
public java.lang.String getPluginList()
public void setPluginList(java.lang.String value)
public static boolean getPluginLoaded()
public static boolean isPluginLoaded()
public static void setPluginLoaded(boolean value)
public org.apache.maven.project.MavenProject getProject()
public void setProject(org.apache.maven.project.MavenProject value)
public java.lang.Boolean getRelaxed()
public void setRelaxed(java.lang.Boolean value)
public boolean getSkip()
public boolean isSkip()
public void setSkip(boolean value)
public boolean getFailOnError()
public boolean isFailOnError()
public void setFailOnError(boolean value)
public java.lang.String getThreshold()
public void setThreshold(java.lang.String value)
public java.lang.String getIncludeFilterFile()
public void setIncludeFilterFile(java.lang.String value)
public java.lang.String getExcludeFilterFile()
public void setExcludeFilterFile(java.lang.String value)
public java.util.ResourceBundle getBundle()
public void setBundle(java.util.ResourceBundle value)
public org.codehaus.plexus.resource.ResourceManager getResourceManager()
public void setResourceManager(org.codehaus.plexus.resource.ResourceManager value)
public void execute()
protected EffortParameter getEffortParameter()
protected void addClasspathEntriesToFindBugsProject(edu.umd.cs.findbugs.Project findBugsProject)
findBugsProject - The find bugs project to add the aux classpath entries.protected void addPluginsToFindBugs()
protected ThresholdParameter getThresholdParameter()
protected void addVisitorsToFindBugs(edu.umd.cs.findbugs.config.UserPreferences preferences)
preferences - The find bugs UserPreferences.protected void setFindBugsDebug(edu.umd.cs.findbugs.FindBugs2 findBugs)
findBugs - The find bugs to add debug level information.protected void addFiltersToFindBugs(edu.umd.cs.findbugs.FindBugs2 findBugs)
findBugs - The find bugs to add the filters.protected void addClassScreenerToFindBugs(edu.umd.cs.findbugs.FindBugs2 findBugs)
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectgetMetaClass in class org.codehaus.groovy.maven.mojo.GroovyMojopublic void setMetaClass(groovy.lang.MetaClass metaClass)
setMetaClass in interface groovy.lang.GroovyObjectsetMetaClass in class org.codehaus.groovy.maven.mojo.GroovyMojo
public java.lang.Object invokeMethod(java.lang.String name,
java.lang.Object args)
invokeMethod in interface groovy.lang.GroovyObjectinvokeMethod in class org.codehaus.groovy.maven.mojo.GroovyMojopublic java.lang.Object getProperty(java.lang.String name)
getProperty in interface groovy.lang.GroovyObjectgetProperty in class org.codehaus.groovy.maven.mojo.GroovyMojo
public void setProperty(java.lang.String name,
java.lang.Object value)
setProperty in interface groovy.lang.GroovyObjectsetProperty in class org.codehaus.groovy.maven.mojo.GroovyMojo
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||