public class PmdExecutor extends Object
PmdRequest
.Modifier and Type | Class and Description |
---|---|
protected static class |
Executor.ProcessStreamHandler |
Constructor and Description |
---|
PmdExecutor(PmdRequest request) |
Modifier and Type | Method and Description |
---|---|
protected static String |
buildClasspath() |
static net.sourceforge.pmd.renderers.Renderer |
createRenderer(String format,
String outputEncoding)
Create and return the correct renderer for the output type.
|
static PmdResult |
execute(PmdRequest request) |
static void |
main(String[] args)
Execute PMD analysis from CLI.
|
protected void |
setupLogLevel(String logLevel) |
public PmdExecutor(PmdRequest request)
public static PmdResult execute(PmdRequest request) throws org.apache.maven.reporting.MavenReportException
org.apache.maven.reporting.MavenReportException
public static void main(String[] args)
Single arg with the filename to the serialized PmdRequest
.
Exit-code: 0 = success, 1 = failure in executing
args
- public static net.sourceforge.pmd.renderers.Renderer createRenderer(String format, String outputEncoding) throws org.apache.maven.reporting.MavenReportException
org.apache.maven.reporting.MavenReportException
- if no renderer found for the output typeprotected void setupLogLevel(String logLevel)
protected static String buildClasspath()
Copyright © 2005–2024 The Apache Software Foundation. All rights reserved.