rls preps

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1370 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2003-01-23 22:20:27 +00:00
parent 85ceb7ab99
commit cc9e73b52f
6 changed files with 26 additions and 16 deletions

View File

@ -11,7 +11,7 @@ You can read much more about PMD here - http://pmd.sf.net/.</p>
<h3>Installation</h3>
<ul>
<li>Uninstall any old PMD-JEdit plugins
<li>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.
<li>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.
<li>Restart JEdit and you'll be ready to go.
</ul>
<h3>Integration</h3>

View File

@ -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

View File

@ -4,8 +4,8 @@
<property name="src" value="src/"/>
<property name="lib" value="lib/"/>
<property name="build" value="build/"/>
<property name="pmdjar" value="pmd-1.01.jar"/>
<property name="pluginversion" value="1.2"/>
<property name="pmdjar" value="pmd-1.02.jar"/>
<property name="pluginversion" value="1.3"/>
<property name="jedit.install.dir" value="c:\jedit\jars"/>

View File

@ -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.

View File

@ -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!"

View File

@ -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;