Class CpdExecutor
java.lang.Object
org.apache.maven.plugins.pmd.exec.CpdExecutor
Executes CPD with the configuration provided via
CpdRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Stringstatic net.sourceforge.pmd.cpd.CPDReportRenderercreateRenderer(String format, String outputEncoding) Create and return the correct renderer for the output type.static voidExecute CPD analysis from CLI.run()
-
Constructor Details
-
CpdExecutor
-
-
Method Details
-
fork
- Throws:
org.apache.maven.reporting.MavenReportException
-
main
Execute CPD analysis from CLI.Single arg with the filename to the serialized
CpdRequest.Exit-code: 0 = success, 1 = failure in executing
- Parameters:
args-
-
run
- Throws:
org.apache.maven.reporting.MavenReportException
-
createRenderer
public static net.sourceforge.pmd.cpd.CPDReportRenderer createRenderer(String format, String outputEncoding) throws org.apache.maven.reporting.MavenReportException Create and return the correct renderer for the output type.- Returns:
- the renderer based on the configured output
- Throws:
org.apache.maven.reporting.MavenReportException- if no renderer found for the output type
-
buildClasspath
-