Klasse PmdExecutor

java.lang.Object
org.apache.maven.plugins.pmd.exec.PmdExecutor

public class PmdExecutor extends Object
Executes PMD with the configuration provided via PmdRequest.
  • Konstruktordetails

    • PmdExecutor

      public PmdExecutor(PmdRequest request)
  • Methodendetails

    • execute

      public static PmdResult execute(PmdRequest request) throws org.apache.maven.reporting.MavenReportException
      Löst aus:
      org.apache.maven.reporting.MavenReportException
    • main

      public static void main(String[] args)
      Execute PMD analysis from CLI.

      Single arg with the filename to the serialized PmdRequest.

      Exit-code: 0 = success, 1 = failure in executing

      Parameter:
      args -
    • createRenderer

      public static net.sourceforge.pmd.renderers.Renderer createRenderer(String format, String outputEncoding) throws org.apache.maven.reporting.MavenReportException
      Create and return the correct renderer for the output type.
      Gibt zurück:
      the renderer based on the configured output
      Löst aus:
      org.apache.maven.reporting.MavenReportException - if no renderer found for the output type
    • setupLogLevel

      protected void setupLogLevel(String logLevel)
    • buildClasspath

      protected static String buildClasspath()