net.sourceforge.pmd.ant
Class PMDTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended bynet.sourceforge.pmd.ant.PMDTask

public class PMDTask
extends org.apache.tools.ant.Task


Field Summary
private  org.apache.tools.ant.types.Path classpath
           
protected  java.lang.String EOL
          The end of line string for this machine.
private  boolean failOnError
           
private  boolean failOnRuleViolation
           
private  java.util.List filesets
           
private  java.util.List formatters
           
private  boolean printToConsole
           
private  java.lang.String ruleSetFiles
           
private  boolean shortFilenames
           
private  boolean targetJDK13
           
 
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
 
Constructor Summary
PMDTask()
           
 
Method Summary
 void addFileset(org.apache.tools.ant.types.FileSet set)
           
 void addFormatter(Formatter f)
           
 org.apache.tools.ant.types.Path createClasspath()
           
private  org.apache.tools.ant.types.Path createLongClasspath()
           
 void execute()
           
 org.apache.tools.ant.types.Path getClasspath()
           
private  void logRulesUsed(RuleSet rules)
           
 void setClasspath(org.apache.tools.ant.types.Path classpath)
           
 void setClasspathRef(org.apache.tools.ant.types.Reference r)
           
 void setFailOnError(boolean fail)
           
 void setFailOnRuleViolation(boolean fail)
           
 void setPrintToConsole(boolean printToConsole)
           
 void setRuleSetFiles(java.lang.String ruleSetFiles)
           
 void setShortFilenames(boolean value)
           
 void setTargetJDK13(boolean value)
           
private  void validate()
           
 
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
 

Field Detail

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.

Constructor Detail

PMDTask

public PMDTask()
Method Detail

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()