From cc9e73b52fb54eb5e8f73fb686cbd639241bd863 Mon Sep 17 00:00:00 2001
From: Tom Copeland
Date: Thu, 23 Jan 2003 22:20:27 +0000
Subject: [PATCH] rls preps
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1370 51baf565-9d33-0410-a72c-fc3788e3496d
---
pmd-jedit/config/jedit.html | 2 +-
pmd-jedit/config/pmd.props | 4 ++--
pmd-jedit/etc/build.xml | 4 ++--
pmd-jedit/etc/changelog.txt | 3 +++
.../etc/doing_the_next_pmd_jedit_release.txt | 22 +++++++++----------
.../sourceforge/pmd/jedit/PMDJEditPlugin.java | 7 ++++++
6 files changed, 26 insertions(+), 16 deletions(-)
diff --git a/pmd-jedit/config/jedit.html b/pmd-jedit/config/jedit.html
index 27aaa37334..7eeb59237a 100644
--- a/pmd-jedit/config/jedit.html
+++ b/pmd-jedit/config/jedit.html
@@ -11,7 +11,7 @@ You can read much more about PMD here - http://pmd.sf.net/.
Installation
- Uninstall any old PMD-JEdit plugins
-
- Unzip the PMD-JEdit-bin-1.2.zip file into your JEdit directory; it'll put a couple of jar files into your jars directory.
+
- Unzip the PMD-JEdit-bin-1.3.zip file into your JEdit directory; it'll put a couple of jar files into your jars directory.
- Restart JEdit and you'll be ready to go.
Integration
diff --git a/pmd-jedit/config/pmd.props b/pmd-jedit/config/pmd.props
index be4ebb7321..00f910031c 100644
--- a/pmd-jedit/config/pmd.props
+++ b/pmd-jedit/config/pmd.props
@@ -3,11 +3,11 @@
#
plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.name=PMD
plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.author=Tom Copeland
-plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.version=1.2
+plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.version=1.3
plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.docs=jedit.html
plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.depend.0=jdk 1.3
plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.depend.1=jedit 04.00.99.00
-plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.jars=pmd-1.01.jar
+plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.jars=pmd-1.02.jar
#
# Menu properties
diff --git a/pmd-jedit/etc/build.xml b/pmd-jedit/etc/build.xml
index c7a0a210a6..205b891879 100644
--- a/pmd-jedit/etc/build.xml
+++ b/pmd-jedit/etc/build.xml
@@ -4,8 +4,8 @@
-
-
+
+
diff --git a/pmd-jedit/etc/changelog.txt b/pmd-jedit/etc/changelog.txt
index 1d9a7dff09..59315d9688 100644
--- a/pmd-jedit/etc/changelog.txt
+++ b/pmd-jedit/etc/changelog.txt
@@ -1,3 +1,6 @@
+January 23 2003 - 1.3:
+Upgraded to work with PMD-1.02.
+
November 20 2002 - 1.2:
Added some more fixes from Jiger.
diff --git a/pmd-jedit/etc/doing_the_next_pmd_jedit_release.txt b/pmd-jedit/etc/doing_the_next_pmd_jedit_release.txt
index 19ff7b6357..4f0a874ffd 100644
--- a/pmd-jedit/etc/doing_the_next_pmd_jedit_release.txt
+++ b/pmd-jedit/etc/doing_the_next_pmd_jedit_release.txt
@@ -1,8 +1,8 @@
update the release date in the changelog
change config/pmd.props to reflect actual pmd.jar file version
-change config/pmd.props to reflect pmd-jedit release 1.2
-change config/jedit.html to reflect pmd-jedit release 1.2
-change the build.xml to reflect pmd-jedit release 1.2
+change config/pmd.props to reflect pmd-jedit release 1.3
+change config/jedit.html to reflect pmd-jedit release 1.3
+change the build.xml to reflect pmd-jedit release 1.3
Create the binary release:
ant release
@@ -13,13 +13,13 @@ TESTS:
3) Are options persistant?
Create the src release:
-cvs -q rtag -D tomorrow "pmd_jedit_release_1_2" pmd-jedit
+cvs -q rtag -D tomorrow "pmd_jedit_release_1_3" pmd-jedit
rmdir /q /s c:\tmp\pmd-jedit
mkdir c:\tmp\pmd-jedit
-cvs -q export -d c:\tmp\pmd-jedit -r pmd_jedit_release_1_2 pmd-jedit
-copy pmd-jedit\lib\PMDJEditPlugin-1.2.jar c:\tmp\pmd-jedit\lib
+cvs -q export -d c:\tmp\pmd-jedit -r pmd_jedit_release_1_3 pmd-jedit
+copy pmd-jedit\lib\PMDJEditPlugin-1.3.jar c:\tmp\pmd-jedit\lib
cd c:\tmp
-"c:\program files\winzip\wzzip.exe" -r -p pmd-jedit-src-1.2.zip pmd-jedit
+"c:\program files\winzip\wzzip.exe" -r -p pmd-jedit-src-1.3.zip pmd-jedit
rmdir /q /s pmd-jedit
FTP the zip file to SF
@@ -27,13 +27,13 @@ ftp upload.sourceforge.net
generic userid/password: anonymous/tom@infoether.com
cd incoming
bin
-put pmd-jedit-src-1.2.zip
-put pmd-jedit-bin-1.2.zip
+put pmd-jedit-src-1.3.zip
+put pmd-jedit-bin-1.3.zip
Go to Admin, Edit/Release Files, click on Add new release
Paste stuff into the changelog/readme boxes
-Add the pmd-jedit-src-1.2.zip file
-Add the pmd-jedit-bin-1.2.zip file
+Add the pmd-jedit-src-1.3.zip file
+Add the pmd-jedit-bin-1.3.zip file
Classify the file
Submit some news saying "hey, new release of the JEdit plugin!"
diff --git a/pmd-jedit/src/net/sourceforge/pmd/jedit/PMDJEditPlugin.java b/pmd-jedit/src/net/sourceforge/pmd/jedit/PMDJEditPlugin.java
index 49849a0582..0ac360e992 100644
--- a/pmd-jedit/src/net/sourceforge/pmd/jedit/PMDJEditPlugin.java
+++ b/pmd-jedit/src/net/sourceforge/pmd/jedit/PMDJEditPlugin.java
@@ -12,6 +12,7 @@ import net.sourceforge.pmd.Report;
import net.sourceforge.pmd.RuleContext;
import net.sourceforge.pmd.RuleSetNotFoundException;
import net.sourceforge.pmd.RuleViolation;
+import net.sourceforge.pmd.PMDException;
import net.sourceforge.pmd.cpd.FileFinder;
import net.sourceforge.pmd.cpd.JavaFileOrDirectoryFilter;
import org.gjt.sp.jedit.Buffer;
@@ -146,6 +147,9 @@ public class PMDJEditPlugin extends EditPlugin {
}
} catch (RuleSetNotFoundException rsne) {
rsne.printStackTrace();
+ } catch (PMDException pmde) {
+ pmde.printStackTrace();
+ JOptionPane.showMessageDialog(jEdit.getFirstView(), "Error while processing " + buffer.getPath());
}
}
@@ -175,6 +179,9 @@ public class PMDJEditPlugin extends EditPlugin {
} catch (FileNotFoundException fnfe) {
// should never happen, but if it does, carry on to the next file
System.out.println("PMD ERROR: Unable to open file " + file.getAbsolutePath());
+ } catch (PMDException pmde) {
+ pmde.printStackTrace();
+ JOptionPane.showMessageDialog(jEdit.getFirstView(), "Error while processing " + file.getAbsolutePath());
}
for (Iterator j = ctx.getReport().iterator(); j.hasNext();) {
foundProblems = true;