From 188797425ea2dd1b27d09c45283dc4e469550ef0 Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Mon, 8 Jul 2002 15:43:20 +0000 Subject: [PATCH] Initial revision git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@230 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd-jedit/config/actions.xml | 9 + pmd-jedit/config/jedit.html | 32 ++ pmd-jedit/config/pmd.props | 17 + pmd-jedit/etc/build.xml | 49 +++ pmd-jedit/etc/changelog.txt | 2 + .../etc/doing_the_next_pmd_jedit_release.txt | 40 ++ pmd-jedit/etc/scp.bat | 4 + pmd-jedit/jedit-pmd.ipr | 371 ++++++++++++++++++ pmd-jedit/lib/jedit.jar | Bin 0 -> 657 bytes pmd-jedit/lib/pmd-0.3.jar | Bin 0 -> 476 bytes .../sourceforge/pmd/jedit/PMDJEditPlugin.java | 92 +++++ 11 files changed, 616 insertions(+) create mode 100644 pmd-jedit/config/actions.xml create mode 100644 pmd-jedit/config/jedit.html create mode 100644 pmd-jedit/config/pmd.props create mode 100644 pmd-jedit/etc/build.xml create mode 100644 pmd-jedit/etc/changelog.txt create mode 100644 pmd-jedit/etc/doing_the_next_pmd_jedit_release.txt create mode 100755 pmd-jedit/etc/scp.bat create mode 100644 pmd-jedit/jedit-pmd.ipr create mode 100644 pmd-jedit/lib/jedit.jar create mode 100644 pmd-jedit/lib/pmd-0.3.jar create mode 100644 pmd-jedit/src/net/sourceforge/pmd/jedit/PMDJEditPlugin.java diff --git a/pmd-jedit/config/actions.xml b/pmd-jedit/config/actions.xml new file mode 100644 index 0000000000..c97a81948b --- /dev/null +++ b/pmd-jedit/config/actions.xml @@ -0,0 +1,9 @@ + + + + + + net.sourceforge.pmd.jedit.PMDJEditPlugin.check(view); + + + \ No newline at end of file diff --git a/pmd-jedit/config/jedit.html b/pmd-jedit/config/jedit.html new file mode 100644 index 0000000000..5aab6e6d78 --- /dev/null +++ b/pmd-jedit/config/jedit.html @@ -0,0 +1,32 @@ + + + PMD JEdit Plug-in Users' Guide

PMD JEdit Plug-in Users' Guide


Installation

System requirements

+The PMD JEdit Plug-in requires at least JEdit 4.0final. +

+

+Refer to the PMD user manual for the basic requirements to run PMD (You +may find the latest version on the PMD website, +http://PMD.sf.net/) +

Installation

+The Plug-in comes as a single .zip file. +Unzipping this file into a directory of your choice (referred +to as <HOME_DIR>) will produce two +subdirectories /bin and /docs. +

+Further installation is simple: just copy the file +<HOME_DIR>/bin/PMD-jedit-bundle-<version>.jar +into the /jars directory of your JEdit distribution. +JEdit will then need to be restarted before PMD begins working. +

Integration

+The software adds a new menu item group into the Plugins +menu of the editor view. Available is a new menu item: +

  • +Plugins->PMD->Check active buffer (Ctrl-Shift-F11). +

    +Checks the contents of the active text area. +

    +

    +
  • +

License

+The JEdit Plug-in is free software, released under the Apache license. +

\ No newline at end of file diff --git a/pmd-jedit/config/pmd.props b/pmd-jedit/config/pmd.props new file mode 100644 index 0000000000..7e9291c6d3 --- /dev/null +++ b/pmd-jedit/config/pmd.props @@ -0,0 +1,17 @@ +# +# Plugin properties +# +plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.name=PMD Java Source Code Checker +plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.author=Tom Copeland +plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.version=0.1 +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.jar + +# +# Menu properties +# +pmd-menu=pmd.check +pmd-menu.label=PMD +pmd.check.label=$Check active buffer diff --git a/pmd-jedit/etc/build.xml b/pmd-jedit/etc/build.xml new file mode 100644 index 0000000000..193563e977 --- /dev/null +++ b/pmd-jedit/etc/build.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pmd-jedit/etc/changelog.txt b/pmd-jedit/etc/changelog.txt new file mode 100644 index 0000000000..c53e2804ac --- /dev/null +++ b/pmd-jedit/etc/changelog.txt @@ -0,0 +1,2 @@ +???? 2002 - 0.1: +Initial release diff --git a/pmd-jedit/etc/doing_the_next_pmd_jedit_release.txt b/pmd-jedit/etc/doing_the_next_pmd_jedit_release.txt new file mode 100644 index 0000000000..ee2a5c83f3 --- /dev/null +++ b/pmd-jedit/etc/doing_the_next_pmd_jedit_release.txt @@ -0,0 +1,40 @@ +update the release date in the changelog + +ant release <-- new task, should create jar and zip it up into a pmd-jedit.zip that looks like: +jars/pmd-0.3.jar +jars/PMDJEditPlugin.jar + +so that it can be unzipped like an overlay + +cvs add -kb pmd-jedit-0.1.jar +cvs rm pmd-jedit-0.1.jar +cvs ci -m "adding new jar, removing old one" +cd c:\data\pmd-jedit +cvs rtag -D tomorrow "pmd_jedit_release_0_4" pmd-jedit +rmdir /q /s c:\tmp\pmd-jedit +mkdir c:\tmp\pmd-jedit +cvs export -d c:\tmp\pmd-jedit -r pmd_jedit_release_0_1 pmd-jedit +zip it up, rename it to pmd-jedit-0.1.zip +unzip it into c:\jedit +TESTS: Can you +1) run jedit ok? +2) open the options panel? +3) run PMD on a file? + +if you see a bug and fix it, you can delete the release using: +cvs rtag -d pmd_jedit_release_0_1 pmd +and then retag everything + +FTP the zip file to SF +ftp upload.sourceforge.net +generic userid/password: anonymous/tomcopeland@users.sourceforge.net +cd incoming +bin +put pmd-jedit-0.1.zip + +Go to Admin, Edit/Release Files, click on Add new release +Paste stuff into the changelog/readme boxes +Add the pmd-jedit-0.1.zip file +Classify the file + +Submit some news saying "hey, new release of the JEdit plugin!" diff --git a/pmd-jedit/etc/scp.bat b/pmd-jedit/etc/scp.bat new file mode 100755 index 0000000000..488147b70f --- /dev/null +++ b/pmd-jedit/etc/scp.bat @@ -0,0 +1,4 @@ +@echo off +set CLASSPATH=build/ +set CLASSPATH=%CLASSPATH%;lib\pmd-0.3.jar +set CLASSPATH=%CLASSPATH%;lib\jedit.jar \ No newline at end of file diff --git a/pmd-jedit/jedit-pmd.ipr b/pmd-jedit/jedit-pmd.ipr new file mode 100644 index 0000000000..d0e89733f2 --- /dev/null +++ b/pmd-jedit/jedit-pmd.ipr @@ -0,0 +1,371 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pmd-jedit/lib/jedit.jar b/pmd-jedit/lib/jedit.jar new file mode 100644 index 0000000000000000000000000000000000000000..fc3a4d4ce529d3348ab4c0312918fc1d05ef4c92 GIT binary patch literal 657 zcmWIWW@h1H0D*~}Jvv|pl;8x?zOEsTx}JV+`T;;?A`Bcrh^|ZoS(&e+pQoE^aEP9- z+h^Z1r+vJ2^)B*y>uQ}lbAEG>!4=~NpM1}pxm)z+JE^6ytIPK+o zQs?67BGySU=Ui8Is;<=BXAoR-AR?a>=bdGneVC+)?q6<(nM8UthHT zPA37`Vu=&D{g#jvq~4d(^Gu^#@$BgGI()78iSNH4P|8HIk4yJ8d`MT49 z?!E=Yhrx~a}tY-0}@LzARe^kJ7mDq`uvAT*z&TIj4O6E9AOc1DqwKF ztfrw7I%yL_`EgzQtVo@oH{VzD`vrQh%~4;uE__{E>Fa!p3DX1nzv)^YYZXf1dsC6rST4Z4k$)RYA^_#D+|vL6 literal 0 HcmV?d00001 diff --git a/pmd-jedit/lib/pmd-0.3.jar b/pmd-jedit/lib/pmd-0.3.jar new file mode 100644 index 0000000000000000000000000000000000000000..2f3f211450f9631b73a9d775e69273bba74a3635 GIT binary patch literal 476 zcmWIWW@h1H00EEi$2wpJl;8x?zOEsTx}JV+`T;;?A`Bcrh^|ZoS(&e+pQoE^aEP9- z+h^Z1r+vJ2^)B*y>uQ}lbAEG>!4=~NPmA=te04m1FP5&_5>#+Tn~`hQ3&~GKABz|n z0=(Hd^pizf41oq305Ql)h|Ap3T*d;F%}Xr-I|{oB0jP@N{L-T2)U^Df^i(9(*t`HT r4_S3VZVDb95?IU!=}62&b``okICT}{(