Class CpdRequest
java.lang.Object
org.apache.maven.plugins.pmd.exec.CpdRequest
- All Implemented Interfaces:
Serializable
Data object to store all configuration options needed to execute CPD
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
boolean
void
setExcludeFromFailureFile
(String excludeFromFailureFile) void
void
setIgnoreAnnotations
(boolean ignoreAnnotations) void
setIgnoreIdentifiers
(boolean ignoreIdentifiers) void
setIgnoreLiterals
(boolean ignoreLiterals) void
setIncludeXmlInReports
(boolean includeXmlInReports) void
setJdkToolchain
(Map<String, String> jdkToolchain) void
setLanguage
(String language) void
setLanguageProperties
(Properties languageProperties) void
setMinimumTokens
(int minimumTokens) void
setOutputEncoding
(String outputEncoding) void
setReportOutputDirectory
(String reportOutputDirectory) void
setSourceEncoding
(String sourceEncoding) void
setTargetDirectory
(String targetDirectory)
-
Constructor Details
-
CpdRequest
public CpdRequest()
-
-
Method Details
-
setJdkToolchain
-
setMinimumTokens
public void setMinimumTokens(int minimumTokens) -
setLanguage
-
setLanguageProperties
-
setSourceEncoding
-
addFiles
-
setExcludeFromFailureFile
-
setTargetDirectory
-
setOutputEncoding
-
setFormat
-
setIncludeXmlInReports
public void setIncludeXmlInReports(boolean includeXmlInReports) -
setReportOutputDirectory
-
getJdkToolchain
-
getMinimumTokens
public int getMinimumTokens() -
getLanguage
-
getLanguageProperties
-
getSourceEncoding
-
getFiles
-
getExcludeFromFailureFile
-
getTargetDirectory
-
getOutputEncoding
-
getFormat
-
isIncludeXmlInReports
public boolean isIncludeXmlInReports() -
getReportOutputDirectory
-
isIgnoreAnnotations
public boolean isIgnoreAnnotations() -
setIgnoreAnnotations
public void setIgnoreAnnotations(boolean ignoreAnnotations) -
setIgnoreIdentifiers
public void setIgnoreIdentifiers(boolean ignoreIdentifiers) -
isIgnoreIdentifiers
public boolean isIgnoreIdentifiers() -
setIgnoreLiterals
public void setIgnoreLiterals(boolean ignoreLiterals) -
isIgnoreLiterals
public boolean isIgnoreLiterals()
-