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
FieldsModifier and TypeFieldDescriptionprotected groovy.lang.Closure
protected List
protected List
protected RuleSet
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConfiguredReport
(Report report) void
addFileset
(org.apache.tools.ant.types.FileSet fileSet) org.apache.tools.ant.types.Path
protected SourceAnalyzer
void
execute()
org.apache.tools.ant.types.Path
int
int
int
groovy.lang.MetaClass
getProperty
(String property) invokeMethod
(String method, Object arguments) void
setClasspath
(org.apache.tools.ant.types.Path value) void
setClasspathRef
(org.apache.tools.ant.types.Reference reference) void
setExcludeBaseline
(String value) void
setMaxPriority1Violations
(int value) void
setMaxPriority2Violations
(int value) void
setMaxPriority3Violations
(int value) void
setMetaClass
(groovy.lang.MetaClass mc) void
setProperty
(String property, Object value) void
setRuleSetFiles
(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
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Field Details
-
reportWriters
-
fileSets
-
ruleSet
-
createCodeNarcRunner
protected groovy.lang.Closure createCodeNarcRunner
-
-
Constructor Details
-
CodeNarcTask
public CodeNarcTask()
-
-
Method Details
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
-
invokeMethod
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
-
getProperty
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
-
setProperty
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
-
getRuleSetFiles
-
setRuleSetFiles
-
getExcludeBaseline
-
setExcludeBaseline
-
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:
execute
in classorg.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
-
addFileset
public void addFileset(org.apache.tools.ant.types.FileSet fileSet) -
addConfiguredReport
-
createClasspath
public org.apache.tools.ant.types.Path createClasspath() -
setClasspathRef
public void setClasspathRef(org.apache.tools.ant.types.Reference reference) -
createSourceAnalyzer
-