Class PmdExecutor
java.lang.Object
org.apache.maven.plugins.pmd.exec.PmdExecutor
Executes PMD with the configuration provided via
PmdRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Stringstatic net.sourceforge.pmd.renderers.RenderercreateRenderer(String format, String outputEncoding) Create and return the correct renderer for the output type.static PmdResultexecute(PmdRequest request) static voidExecute PMD analysis from CLI.protected voidsetupLogLevel(String logLevel) protected voidsetupPmdLogging(boolean showPmdLog, boolean colorizedLog, String logLevel)
-
Constructor Details
-
PmdExecutor
-
-
Method Details
-
execute
- Throws:
MavenReportException
-
main
Execute PMD analysis from CLI.Single arg with the filename to the serialized
PmdRequest.Exit-code: 0 = success, 1 = failure in executing
- Parameters:
args-
-
createRenderer
public static net.sourceforge.pmd.renderers.Renderer createRenderer(String format, String outputEncoding) throws MavenReportException Create and return the correct renderer for the output type.- Returns:
- the renderer based on the configured output
- Throws:
MavenReportException- if no renderer found for the output type
-
setupPmdLogging
-
setupLogLevel
-
buildClasspath
-