net.sourceforge.pmd.ant
Class PMDTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
net.sourceforge.pmd.ant.PMDTask
- public class PMDTask
- extends org.apache.tools.ant.Task
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
classpath
private org.apache.tools.ant.types.Path classpath
formatters
private java.util.List formatters
filesets
private java.util.List filesets
shortFilenames
private boolean shortFilenames
printToConsole
private boolean printToConsole
ruleSetFiles
private java.lang.String ruleSetFiles
failOnError
private boolean failOnError
failOnRuleViolation
private boolean failOnRuleViolation
targetJDK13
private boolean targetJDK13
EOL
protected java.lang.String EOL
- The end of line string for this machine.
PMDTask
public PMDTask()
setShortFilenames
public void setShortFilenames(boolean value)
setTargetJDK13
public void setTargetJDK13(boolean value)
setFailOnError
public void setFailOnError(boolean fail)
setFailOnRuleViolation
public void setFailOnRuleViolation(boolean fail)
setPrintToConsole
public void setPrintToConsole(boolean printToConsole)
setRuleSetFiles
public void setRuleSetFiles(java.lang.String ruleSetFiles)
addFileset
public void addFileset(org.apache.tools.ant.types.FileSet set)
addFormatter
public void addFormatter(Formatter f)
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)
execute
public void execute()
throws org.apache.tools.ant.BuildException
- Throws:
org.apache.tools.ant.BuildException
logRulesUsed
private void logRulesUsed(RuleSet rules)
validate
private void validate()
throws org.apache.tools.ant.BuildException
- Throws:
org.apache.tools.ant.BuildException
createLongClasspath
private org.apache.tools.ant.types.Path createLongClasspath()