pmd-eclipse: Use last stable PMD version 5.0.3.
This commit is contained in:
1 parent
7e8f558263
commit
8d3ed164fb
3 files changed
+8
-5
No files matched your search
@@ -17,7 +17,7 @@
|
||||
<dependency>
|
||||
<groupId>net.sourceforge.pmd</groupId>
|
||||
<artifactId>pmd</artifactId>
|
||||
<version>5.1.0-SNAPSHOT</version>
|
||||
<version>${pmd.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.castor</groupId>
|
||||
|
||||
+6
-4
@@ -272,10 +272,12 @@ public class DetectCutAndPasteCmd extends AbstractProjectCommand {
|
||||
}
|
||||
|
||||
private CPD newCPD() {
|
||||
CPDConfiguration config = new CPDConfiguration();
|
||||
config.setMinimumTileSize(minTileSize);
|
||||
config.setLanguage(language);
|
||||
config.setEncoding(System.getProperty("file.encoding"));
|
||||
CPDConfiguration config = new CPDConfiguration(minTileSize, language, System.getProperty("file.encoding"));
|
||||
// The following lines are needed starting with PMD 5.1.0-SNAPSHOT.
|
||||
// CPDConfiguration config = new CPDConfiguration();
|
||||
// config.setMinimumTileSize(minTileSize);
|
||||
// config.setLanguage(language);
|
||||
// config.setEncoding(System.getProperty("file.encoding"));
|
||||
return new CPD(config);
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
<tycho.version>0.17.0</tycho.version>
|
||||
<tycho-extras.version>0.17.0</tycho-extras.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<pmd.version>5.0.3</pmd.version>
|
||||
</properties>
|
||||
|
||||
<repositories>
|
||||
|
||||
Reference in new issue
Block a user