Class Formatter


  • public class Formatter
    extends Object
    Part of PMD Ant task configuration. Setters of this class are interpreted by Ant as properties settable in the XML. This is therefore published API.

    This class is used to configure a specific Renderer for outputting the violations. This is called a formatter in PMD Ant task configuration and might look like this:

    
     <pmd>
       <formatter type="html" toFile="${build}/pmd_report.html"/>
     </pmd>
     
    See Also:
    PMDTask.addFormatter(Formatter)
    • Constructor Detail

      • Formatter

        public Formatter()
    • Method Detail

      • setShowSuppressed

        public void setShowSuppressed​(boolean value)
      • setType

        public void setType​(String type)
      • setToFile

        public void setToFile​(File toFile)
      • setToConsole

        public void setToConsole​(boolean toConsole)
      • addConfiguredParam

        public void addConfiguredParam​(org.apache.tools.ant.types.Parameter parameter)