updated to PMD-3.5, fixed deprecated RuleViolation.getLine(), dist files built with prefix, depends on NB5.0
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4166 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
Version 1.4.1
|
||||
Version 1.5
|
||||
- Updated pmd to version 3.5
|
||||
- Options customization updated to plug into new NetBeans 5.0 options dialog
|
||||
|
||||
Version 1.4
|
||||
|
@ -1,4 +1,4 @@
|
||||
Copyright (c) 2002-2005, the pmd-netbeans team
|
||||
Copyright (c) 2002-2006, the pmd-netbeans team
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
|
@ -35,8 +35,8 @@ XXXXXXXXXXXXXXXXXXXXXXXX
|
||||
RULES
|
||||
------------------------
|
||||
1) Start NetBeans
|
||||
2) Goto Tools --> Options and click on Classic View
|
||||
3) Navigate to Options/IDE Configuration/Server And External Tool Settings/PMD Settings
|
||||
2) Goto Tools --> Options
|
||||
3) Navigate to Miscelaneous section and expand PMD node
|
||||
4) Click on "Rules"
|
||||
5) Click on the [...] button
|
||||
6) Select the different rules to see information and examples of the rule
|
||||
@ -47,9 +47,8 @@ RULES
|
||||
CUSTOM RULESETS
|
||||
------------------------
|
||||
1) Start NetBeans
|
||||
2) Goto Tools --> Options and click on Classic View
|
||||
3) Navigate to Options/IDE Configuration/Server And External Tool Settings/PMD Settings
|
||||
4) Click on the Expert tab
|
||||
2) Goto Tools --> Options
|
||||
3) Navigate to Miscelaneous section and expand PMD node
|
||||
5) Click on "Rulesets"
|
||||
6) Click "Add RuleSet" to locate the ruleset xml file you want to include
|
||||
7) Click "Add Rule jar" to locate the jar containing the rules
|
||||
@ -61,8 +60,8 @@ CUSTOM RULESETS
|
||||
REALTIME SCANNING
|
||||
------------------------
|
||||
1) Start NetBeans
|
||||
2) Goto Tools --> Options and click on Classic View
|
||||
3) Navigate to Options/IDE Configuration/Server And External Tool Settings/PMD Settings
|
||||
2) Goto Tools --> Options
|
||||
3) Navigate to Miscelaneous section and expand PMD node
|
||||
4) Click on "Enable scan"
|
||||
5) Choose true to enable scan, false otherwise.
|
||||
6) Click on "Scan interval"
|
||||
|
@ -2,8 +2,9 @@
|
||||
|
||||
<import file="nbproject/build-impl.xml"/>
|
||||
|
||||
<property name="pmd.jar" value="pmd-3.4.jar"/>
|
||||
<property name="VERSION" value="1.4"/>
|
||||
<property name="pmd.jar" value="pmd-3.5.jar"/>
|
||||
<property name="nb.version" value="5.0"/>
|
||||
<property name="VERSION" value="1.5"/>
|
||||
|
||||
<property file="build.ant.properties"/>
|
||||
|
||||
@ -30,7 +31,7 @@
|
||||
<copy todir="${cluster}/modules/ext">
|
||||
<fileset dir="lib">
|
||||
<include name="${pmd.jar}"/>
|
||||
<include name="jakarta-oro-2.0.jar"/>
|
||||
<include name="jakarta-oro-2.0.8.jar"/>
|
||||
<include name="jaxen-1.1-beta-7.jar"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
@ -38,8 +39,8 @@
|
||||
|
||||
<target depends="clean, nbm" description="Builds the distribution" name="distribution">
|
||||
<fail unless="VERSION" message="Must define VERSION property with the version number for this distribution!"/>
|
||||
<zip compress="true" destfile="build/pmd-netbeans50-${VERSION}-src.zip">
|
||||
<zipfileset dir=".">
|
||||
<zip compress="true" destfile="build/pmd-${nb.version}-${VERSION}-src.zip">
|
||||
<zipfileset dir="." prefix="pmd-${nb.version}-${VERSION}">
|
||||
<include name="*.txt"/>
|
||||
<include name="manifest.mf"/>
|
||||
<include name="build.xml"/>
|
||||
@ -48,15 +49,15 @@
|
||||
<include name="libsrc/**/*"/>
|
||||
<include name="lib/${pmd.jar}"/>
|
||||
<include name="lib/jaxen-1.1-beta-7.jar"/>
|
||||
<include name="lib/jakarta-oro-2.0.jar"/>
|
||||
<include name="lib/jakarta-oro-2.0.8.jar"/>
|
||||
</zipfileset>
|
||||
<zipfileset dir="." fullpath="pmd.nbm" includes="build/pmd.nbm"/>
|
||||
<zipfileset dir="." fullpath="pmd-${nb.version}-${VERSION}/pmd.nbm" includes="build/pmd.nbm"/>
|
||||
</zip>
|
||||
<zip compress="true" destfile="build/pmd-netbeans50-${VERSION}-bin.zip">
|
||||
<zipfileset dir=".">
|
||||
<zip compress="true" destfile="build/pmd-${nb.version}-${VERSION}-bin.zip">
|
||||
<zipfileset dir="." prefix="pmd-${nb.version}-${VERSION}">
|
||||
<include name="*.txt"/>
|
||||
</zipfileset>
|
||||
<zipfileset dir="." fullpath="pmd.nbm" includes="build/pmd.nbm"/>
|
||||
<zipfileset dir="." fullpath="pmd-${nb.version}-${VERSION}/pmd.nbm" includes="build/pmd.nbm"/>
|
||||
</zip>
|
||||
</target>
|
||||
|
||||
|
BIN
pmd-netbeans/lib/jakarta-oro-2.0.8.jar
Normal file
BIN
pmd-netbeans/lib/jakarta-oro-2.0.8.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
Manifest-Version: 1.0
|
||||
OpenIDE-Module-Specification-Version: 1.4.1
|
||||
OpenIDE-Module-Specification-Version: 1.5
|
||||
Created-By: Ole-Martin Mørk and Gunnlaugur Þór Briem and Radim Kubacki
|
||||
OpenIDE-Module: pmd
|
||||
OpenIDE-Module-Install: pmd/PMDInstall.class
|
||||
|
@ -1,7 +1,7 @@
|
||||
extra.module.files=\
|
||||
modules/ext/jaxen-1.1-beta-7.jar \
|
||||
modules/ext/pmd-3.4.jar \
|
||||
modules/ext/jakarta-oro-2.0.jar \
|
||||
modules/ext/pmd-3.5.jar \
|
||||
modules/ext/jakarta-oro-2.0.8.jar \
|
||||
modules/ext/nbpmdrules.jar
|
||||
nbm.distribution=http://pmd.sourceforge.net/
|
||||
|
||||
|
@ -8,21 +8,17 @@
|
||||
<standalone/>
|
||||
<class-path-extension>
|
||||
<!-- Deployed path, relative to dir containing module: -->
|
||||
<runtime-relative-path>ext/jakarta-oro-2.0.jar</runtime-relative-path>
|
||||
<runtime-relative-path>ext/jakarta-oro-2.0.8.jar</runtime-relative-path>
|
||||
<!-- Path of library in your own sources, relative to project basedir: -->
|
||||
<binary-origin>lib/jakarta-oro-2.0.jar</binary-origin>
|
||||
<binary-origin>lib/jakarta-oro-2.0.8.jar</binary-origin>
|
||||
</class-path-extension>
|
||||
<class-path-extension>
|
||||
<!-- Deployed path, relative to dir containing module: -->
|
||||
<runtime-relative-path>ext/jaxen-1.1-beta-7.jar</runtime-relative-path>
|
||||
<!-- Path of library in your own sources, relative to project basedir: -->
|
||||
<binary-origin>lib/jaxen-1.1-beta-7.jar</binary-origin>
|
||||
</class-path-extension>
|
||||
<class-path-extension>
|
||||
<!-- Deployed path, relative to dir containing module: -->
|
||||
<runtime-relative-path>ext/pmd-3.4.jar</runtime-relative-path>
|
||||
<!-- Path of library in your own sources, relative to project basedir: -->
|
||||
<binary-origin>lib/pmd-3.4.jar</binary-origin>
|
||||
<runtime-relative-path>ext/pmd-3.5.jar</runtime-relative-path>
|
||||
<binary-origin>lib/pmd-3.5.jar</binary-origin>
|
||||
</class-path-extension>
|
||||
<class-path-extension>
|
||||
<!-- Deployed path, relative to dir containing module: -->
|
||||
@ -35,7 +31,7 @@
|
||||
<compile-dependency/>
|
||||
<run-dependency>
|
||||
<release-version>1</release-version>
|
||||
<specification-version>1.4</specification-version>
|
||||
<specification-version>1.3.1</specification-version>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@ -77,7 +73,7 @@
|
||||
<compile-dependency/>
|
||||
<run-dependency>
|
||||
<release-version>0</release-version>
|
||||
<specification-version>1.4</specification-version>
|
||||
<specification-version>1.3.1</specification-version>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@ -93,7 +89,7 @@
|
||||
<build-prerequisite/>
|
||||
<compile-dependency/>
|
||||
<run-dependency>
|
||||
<specification-version>6.6</specification-version>
|
||||
<specification-version>6.5.1</specification-version>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@ -176,7 +172,7 @@
|
||||
<public-packages/>
|
||||
<extra-compilation-unit>
|
||||
<package-root>libsrc</package-root>
|
||||
<classpath>lib/pmd-3.4.jar</classpath>
|
||||
<classpath>lib/pmd-3.5.jar</classpath>
|
||||
<built-to>build/libclasses</built-to>
|
||||
<built-to>${cluster}/modules/ext/nbpmdrules.jar</built-to>
|
||||
</extra-compilation-unit>
|
||||
|
@ -238,7 +238,7 @@ public class RunPMDAction extends CookieAction {
|
||||
StringBuffer buffer = new StringBuffer();
|
||||
buffer.append( violation.getRule().getName() ).append( ", " );
|
||||
buffer.append( violation.getDescription() );
|
||||
Fault fault = new Fault( violation.getLine(),
|
||||
Fault fault = new Fault( violation.getNode().getBeginLine(),
|
||||
violation.getFilename(),
|
||||
buffer.toString() );
|
||||
list.add( fault );
|
||||
|
Reference in New Issue
Block a user