Class PmdRequest
java.lang.Object
org.apache.maven.plugins.pmd.exec.PmdRequest
- All Implemented Interfaces:
Serializable
Data object to store all configuration options needed to execute PMD
as a separate process.
This class is intended to be serialized and read back.
Some properties might be optional and can be null
.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFiles
(Collection<File> files) getFiles()
int
boolean
boolean
boolean
void
setAnalysisCacheLocation
(String analysisCacheLocation) void
setAuxClasspath
(String auxClasspath) void
setBenchmarkOutputLocation
(String benchmarkOutputLocation) void
setExcludeFromFailureFile
(String excludeFromFailureFile) void
void
setIncludeXmlInReports
(boolean includeXmlInReports) void
setJdkToolchain
(Map<String, String> jdkToolchain) void
setLanguageAndVersion
(String language, String targetJdk) Configure language and language version.void
setLogLevel
(String logLevel) void
setMinimumPriority
(int minimumPriority) void
setOutputEncoding
(String outputEncoding) void
setReportOutputDirectory
(String reportOutputDirectory) void
setRulesets
(List<String> rulesets) void
setSkipPmdError
(boolean skipPmdError) void
setSourceEncoding
(String sourceEncoding) void
setSuppressMarker
(String suppressMarker) void
setTargetDirectory
(String targetDirectory)
-
Constructor Details
-
PmdRequest
public PmdRequest()
-
-
Method Details
-
setLanguageAndVersion
Configure language and language version.- Parameters:
language
- the languagetargetJdk
- the language version, optional, can benull
-
setJdkToolchain
-
setMinimumPriority
public void setMinimumPriority(int minimumPriority) -
setAuxClasspath
-
setSuppressMarker
-
setAnalysisCacheLocation
-
setRulesets
-
setSourceEncoding
-
addFiles
-
setBenchmarkOutputLocation
-
setTargetDirectory
-
setOutputEncoding
-
setFormat
-
setLogLevel
-
setSkipPmdError
public void setSkipPmdError(boolean skipPmdError) -
setIncludeXmlInReports
public void setIncludeXmlInReports(boolean includeXmlInReports) -
setReportOutputDirectory
-
setExcludeFromFailureFile
-
getJdkToolchain
-
getLanguage
-
getLanguageVersion
-
getMinimumPriority
public int getMinimumPriority() -
getAuxClasspath
-
getSuppressMarker
-
getAnalysisCacheLocation
-
getRulesets
-
getSourceEncoding
-
getFiles
-
getBenchmarkOutputLocation
-
getTargetDirectory
-
getOutputEncoding
-
getFormat
-
getLogLevel
-
isDebugEnabled
public boolean isDebugEnabled() -
isSkipPmdError
public boolean isSkipPmdError() -
isIncludeXmlInReports
public boolean isIncludeXmlInReports() -
getReportOutputDirectory
-
getExcludeFromFailureFile
-