Package net.sourceforge.pmd.ant
Class PMDTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- net.sourceforge.pmd.ant.PMDTask
-
- All Implemented Interfaces:
Cloneable
public class PMDTask extends org.apache.tools.ant.Task
-
-
Constructor Summary
Constructors Constructor Description PMDTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConfiguredSourceLanguage(SourceLanguage version)voidaddFileset(org.apache.tools.ant.types.FileSet set)voidaddFormatter(Formatter f)voidaddRuleset(RuleSetWrapper r)org.apache.tools.ant.types.PathcreateAuxClasspath()org.apache.tools.ant.types.PathcreateClasspath()voidexecute()org.apache.tools.ant.types.PathgetAuxClasspath()StringgetCacheLocation()org.apache.tools.ant.types.PathgetClasspath()StringgetEncoding()StringgetFailuresPropertyName()List<org.apache.tools.ant.types.FileSet>getFilesets()List<Formatter>getFormatters()intgetMaxRuleViolations()intgetMinimumPriority()Collection<RuleSetWrapper>getNestedRules()StringgetRulesetFiles()SourceLanguagegetSourceLanguage()StringgetSuppressMarker()intgetThreads()booleanisFailOnError()booleanisFailOnRuleViolation()booleanisNoCache()booleanisNoRuleSetCompatibility()booleanisShortFilenames()voidsetAuxClasspath(org.apache.tools.ant.types.Path auxClasspath)voidsetAuxClasspathRef(org.apache.tools.ant.types.Reference r)voidsetCacheLocation(String cacheLocation)voidsetClasspath(org.apache.tools.ant.types.Path classpath)voidsetClasspathRef(org.apache.tools.ant.types.Reference r)voidsetEncoding(String sourceEncoding)voidsetFailOnError(boolean fail)voidsetFailOnRuleViolation(boolean fail)voidsetFailuresPropertyName(String failuresPropertyName)voidsetMaxRuleViolations(int max)voidsetMinimumPriority(int minPriority)voidsetNoCache(boolean noCache)voidsetNoRuleSetCompatibility(boolean noRuleSetCompatibility)voidsetRuleSetFiles(String ruleSets)voidsetShortFilenames(boolean reportShortNames)voidsetSuppressMarker(String suppressMarker)voidsetThreads(int threads)-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
setShortFilenames
public void setShortFilenames(boolean reportShortNames)
-
setSuppressMarker
public void setSuppressMarker(String suppressMarker)
-
setFailOnError
public void setFailOnError(boolean fail)
-
setFailOnRuleViolation
public void setFailOnRuleViolation(boolean fail)
-
setMaxRuleViolations
public void setMaxRuleViolations(int max)
-
setRuleSetFiles
public void setRuleSetFiles(String ruleSets)
-
setEncoding
public void setEncoding(String sourceEncoding)
-
setThreads
public void setThreads(int threads)
-
setFailuresPropertyName
public void setFailuresPropertyName(String failuresPropertyName)
-
setMinimumPriority
public void setMinimumPriority(int minPriority)
-
addFileset
public void addFileset(org.apache.tools.ant.types.FileSet set)
-
addFormatter
public void addFormatter(Formatter f)
-
addConfiguredSourceLanguage
public void addConfiguredSourceLanguage(SourceLanguage version)
-
setClasspath
public void setClasspath(org.apache.tools.ant.types.Path classpath)
-
getClasspath
public org.apache.tools.ant.types.Path getClasspath()
-
createClasspath
public org.apache.tools.ant.types.Path createClasspath()
-
setClasspathRef
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
-
setAuxClasspath
public void setAuxClasspath(org.apache.tools.ant.types.Path auxClasspath)
-
getAuxClasspath
public org.apache.tools.ant.types.Path getAuxClasspath()
-
createAuxClasspath
public org.apache.tools.ant.types.Path createAuxClasspath()
-
setAuxClasspathRef
public void setAuxClasspathRef(org.apache.tools.ant.types.Reference r)
-
addRuleset
public void addRuleset(RuleSetWrapper r)
-
getFilesets
public List<org.apache.tools.ant.types.FileSet> getFilesets()
-
isFailOnError
public boolean isFailOnError()
-
isFailOnRuleViolation
public boolean isFailOnRuleViolation()
-
isShortFilenames
public boolean isShortFilenames()
-
getSuppressMarker
public String getSuppressMarker()
-
getRulesetFiles
public String getRulesetFiles()
-
getEncoding
public String getEncoding()
-
getThreads
public int getThreads()
-
getMinimumPriority
public int getMinimumPriority()
-
getMaxRuleViolations
public int getMaxRuleViolations()
-
getFailuresPropertyName
public String getFailuresPropertyName()
-
getSourceLanguage
public SourceLanguage getSourceLanguage()
-
getNestedRules
public Collection<RuleSetWrapper> getNestedRules()
-
isNoRuleSetCompatibility
public boolean isNoRuleSetCompatibility()
-
setNoRuleSetCompatibility
public void setNoRuleSetCompatibility(boolean noRuleSetCompatibility)
-
getCacheLocation
public String getCacheLocation()
-
setCacheLocation
public void setCacheLocation(String cacheLocation)
-
isNoCache
public boolean isNoCache()
-
setNoCache
public void setNoCache(boolean noCache)
-
-