public class CpdExecutor extends Object
CpdRequest
.Modifier and Type | Class and Description |
---|---|
protected static class |
Executor.ProcessStreamHandler |
Constructor and Description |
---|
CpdExecutor(CpdRequest request) |
Modifier and Type | Method and Description |
---|---|
protected static String |
buildClasspath() |
static net.sourceforge.pmd.cpd.CPDReportRenderer |
createRenderer(String format,
String outputEncoding)
Create and return the correct renderer for the output type.
|
static CpdResult |
execute(CpdRequest request) |
static void |
main(String[] args)
Execute CPD analysis from CLI.
|
protected void |
setupLogLevel(String logLevel) |
public CpdExecutor(CpdRequest request)
public static CpdResult execute(CpdRequest 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 CpdRequest
.
Exit-code: 0 = success, 1 = failure in executing
args
- public static net.sourceforge.pmd.cpd.CPDReportRenderer 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.