merged latest changes from CVS

updated platform name to 'NetBeans 6.0'

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5647 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Radim Kubacki 2007-11-15 05:53:57 +00:00
parent 8c0ce71a35
commit 285941cc41
8 changed files with 23 additions and 47 deletions

View File

@ -1,3 +1,7 @@
- [ 1790292 ] NPE while scanning closed document
Version 2.0
- Updated pmd to version 4.0
- Requires NB6.0M9 or newer IDE build
- [ 1722116 ] pmd.scan.Scanner.run fails with Netbeans 6.0
- [ 1450727 ] PMD does not honour configured src file encoding

View File

@ -5,18 +5,14 @@ INSTALL
------------------------
1) Start NetBeans
2) Goto Tools --> Module Manager
3) Press Update
4) Choose "Install Manually Downloaded Modules (.nbm Files).".
5) Press Next
6) Choose Add
7) Goto the directory where you downloaded pmd-netbeans and choose the file "pmd.nbm".
8) Press OK
9) Press Next
10) Press Next
11) Press Accept
12) Choose Include and confirm to install an usined module
13) Press Finish
2) Goto Tools --> Plugins
3) Switch to 'Downloaded' tab
4) Press 'Add plugins'
5) Goto the directory where you downloaded pmd-netbeans and choose the file "pmd.nbm".
6) Press OK
7) Press Install
8) Accept the license
9) Confirm installation of an usigned module
------------------------
USE
@ -62,8 +58,4 @@ REALTIME SCANNING
1) Start NetBeans
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"
7) Enter the number of seconds between each scan
XX) NetBeans requires a restart to disable scanning
4) Select "Enable scan"

View File

@ -2,9 +2,9 @@
<import file="nbproject/build-impl.xml"/>
<property name="pmd.jar" value="pmd-3.9.jar"/>
<property name="nb.version" value="netbeans55"/>
<property name="VERSION" value="1.9.1"/>
<property name="pmd.jar" value="pmd-4.0.jar"/>
<property name="nb.version" value="netbeans60M9"/>
<property name="VERSION" value="2.0"/>
<property file="build.ant.properties"/>
@ -32,8 +32,7 @@
<fileset dir="lib">
<include name="${pmd.jar}"/>
<include name="asm-3.0.jar"/>
<include name="backport-util-concurrent.jar"/>
<include name="jaxen-1.1-beta-10.jar"/>
<include name="jaxen-1.1.jar"/>
</fileset>
</copy>
</target>
@ -49,9 +48,8 @@
<include name="src/**/*"/>
<include name="libsrc/**/*"/>
<include name="lib/${pmd.jar}"/>
<include name="lib/jaxen-1.1-beta-10.jar"/>
<include name="lib/jaxen-1.1.jar"/>
<include name="lib/asm-3.0.jar"/>
<include name="lib/backport-util-concurrent.jar"/>
</zipfileset>
<zipfileset dir="." fullpath="pmd-${nb.version}-${VERSION}/pmd.nbm" includes="build/pmd.nbm"/>
</zip>

View File

@ -1,5 +1,5 @@
Manifest-Version: 1.0
OpenIDE-Module-Specification-Version: 1.9.1
OpenIDE-Module-Specification-Version: 2.0
Created-By: Ole-Martin Mørk and Gunnlaugur Þór Briem, Radim Kubacki, Tomasz Slota
OpenIDE-Module: pmd
OpenIDE-Module-Layer: pmd/mf-layer.xml

View File

@ -1,5 +1,5 @@
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=7134de0c
nbproject/build-impl.xml.data.CRC32=7a9ef2e5
nbproject/build-impl.xml.script.CRC32=209b78c0
nbproject/build-impl.xml.stylesheet.CRC32=3f8b4615
nbproject/build-impl.xml.stylesheet.CRC32=deb65f65

View File

@ -1,2 +1,2 @@
nbjdk.active=JDK_1.5
nbplatform.active=NetBeans_IDE_6.0M9
nbplatform.active=NetBeans_IDE_6.0

View File

@ -138,7 +138,7 @@ public class NbRuleSetFactory extends RuleSetFactory {
}
if (node.getNodeName() != null && node.getNodeName().equals("example")) {
rule.setExample(node.getFirstChild().getNextSibling().getNodeValue());
rule.addExample(node.getFirstChild().getNextSibling().getNodeValue());
}
if (node.getNodeName().equals("properties")) {

View File

@ -61,24 +61,6 @@ public abstract class ConfigUtils {
extraFactories.add(NbRuleSetFactory.getDefault ());
}
/**
* Registers extra rules that are available.
*
* @param rules Collection of Rule objects.
*/
public static synchronized void addRuleSetFactory(RuleSetFactory fact) {
extraFactories.add(fact);
}
/**
* Unregisters extra rules previously registered.
*
* @param rules Collection of Rule objects.
*/
public static synchronized void removeRuleSetFactory(RuleSetFactory fact) {
extraFactories.remove(fact);
}
/**
* Determines the list of rules to use. This is done by iterating over all
* known rules and, for each one, checking whether its name appears in the