Package org.codenarc.ant
Class CodeNarcTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.codenarc.ant.CodeNarcTask
-
- All Implemented Interfaces:
groovy.lang.GroovyObject,Cloneable
public class CodeNarcTask extends org.apache.tools.ant.Task implements groovy.lang.GroovyObject
-
-
Field Summary
Fields Modifier and Type Field Description protected groovy.lang.ClosurecreateCodeNarcRunnerprotected ListfileSetsprotected ListreportWritersprotected RuleSetruleSet
-
Constructor Summary
Constructors Constructor Description CodeNarcTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConfiguredReport(Report report)voidaddFileset(org.apache.tools.ant.types.FileSet fileSet)org.apache.tools.ant.types.PathcreateClasspath()protected SourceAnalyzercreateSourceAnalyzer()voidexecute()org.apache.tools.ant.types.PathgetClasspath()StringgetExcludeBaseline()intgetMaxPriority1Violations()intgetMaxPriority2Violations()intgetMaxPriority3Violations()groovy.lang.MetaClassgetMetaClass()ObjectgetProperty(String property)StringgetRuleSetFiles()ObjectinvokeMethod(String method, Object arguments)voidsetClasspath(org.apache.tools.ant.types.Path value)voidsetClasspathRef(org.apache.tools.ant.types.Reference reference)voidsetExcludeBaseline(String value)voidsetMaxPriority1Violations(int value)voidsetMaxPriority2Violations(int value)voidsetMaxPriority3Violations(int value)voidsetMetaClass(groovy.lang.MetaClass mc)voidsetProperty(String property, Object value)voidsetRuleSetFiles(String value)-
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
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject
-
invokeMethod
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject
-
getProperty
public Object getProperty(String property)
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject
-
getRuleSetFiles
public String getRuleSetFiles()
-
setRuleSetFiles
public void setRuleSetFiles(String value)
-
getExcludeBaseline
public String getExcludeBaseline()
-
setExcludeBaseline
public void setExcludeBaseline(String value)
-
getMaxPriority1Violations
public int getMaxPriority1Violations()
-
setMaxPriority1Violations
public void setMaxPriority1Violations(int value)
-
getMaxPriority2Violations
public int getMaxPriority2Violations()
-
setMaxPriority2Violations
public void setMaxPriority2Violations(int value)
-
getMaxPriority3Violations
public int getMaxPriority3Violations()
-
setMaxPriority3Violations
public void setMaxPriority3Violations(int value)
-
getClasspath
public org.apache.tools.ant.types.Path getClasspath()
-
setClasspath
public void setClasspath(org.apache.tools.ant.types.Path value)
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
addFileset
public void addFileset(org.apache.tools.ant.types.FileSet fileSet)
-
addConfiguredReport
public void addConfiguredReport(Report report)
-
createClasspath
public org.apache.tools.ant.types.Path createClasspath()
-
setClasspathRef
public void setClasspathRef(org.apache.tools.ant.types.Reference reference)
-
createSourceAnalyzer
protected SourceAnalyzer createSourceAnalyzer()
-
-