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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFiles
(Collection<File> files) getFiles()
int
boolean
boolean
boolean
boolean
boolean
void
setAnalysisCacheLocation
(String analysisCacheLocation) void
setAuxClasspath
(String auxClasspath) void
setBenchmarkOutputLocation
(String benchmarkOutputLocation) void
setColorizedLog
(boolean colorizedLog) void
setExcludeFromFailureFile
(String excludeFromFailureFile) void
void
setIncludeXmlInSite
(boolean includeXmlInSite) void
setJavaExecutable
(String javaExecutable) 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
(String rulesets) void
setShowPmdLog
(boolean showPmdLog) 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
-
setJavaExecutable
-
setMinimumPriority
public void setMinimumPriority(int minimumPriority) -
setAuxClasspath
-
setSuppressMarker
-
setAnalysisCacheLocation
-
setRulesets
-
setSourceEncoding
-
addFiles
-
setBenchmarkOutputLocation
-
setTargetDirectory
-
setOutputEncoding
-
setFormat
-
setShowPmdLog
public void setShowPmdLog(boolean showPmdLog) -
setColorizedLog
public void setColorizedLog(boolean colorizedLog) -
setLogLevel
-
setSkipPmdError
public void setSkipPmdError(boolean skipPmdError) -
setIncludeXmlInSite
public void setIncludeXmlInSite(boolean includeXmlInSite) -
setReportOutputDirectory
-
setExcludeFromFailureFile
-
getJavaExecutable
-
getLanguage
-
getLanguageVersion
-
getMinimumPriority
public int getMinimumPriority() -
getAuxClasspath
-
getSuppressMarker
-
getAnalysisCacheLocation
-
getRulesets
-
getSourceEncoding
-
getFiles
-
getBenchmarkOutputLocation
-
getTargetDirectory
-
getOutputEncoding
-
getFormat
-
isShowPmdLog
public boolean isShowPmdLog() -
isColorizedLog
public boolean isColorizedLog() -
getLogLevel
-
isDebugEnabled
public boolean isDebugEnabled() -
isSkipPmdError
public boolean isSkipPmdError() -
isIncludeXmlInSite
public boolean isIncludeXmlInSite() -
getReportOutputDirectory
-
getExcludeFromFailureFile
-