Updating to 9.0.5

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2583 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2004-03-18 20:19:15 +00:00
parent 88c7817da9
commit 3febb6b7c2
7 changed files with 33 additions and 26 deletions

View File

@ -2,21 +2,22 @@
<property name="config" value="config/"/>
<property name="src" value="src/"/>
<property name="lib" value="lib/"/>
<property name="etc" value="etc/"/>
<property name="pmdjar" value="pmd-1.6.jar"/>
<property name="pluginversion" value="0.8"/>
<property name="jdeveloper.install.dir" value="/home/tom/jdev/jdev/lib/ext/${ant.project.name}-${pluginversion}"/>
<property name="jdeveloper.install.dir" value="/home/tom/jdev905/jdev/lib/ext/${ant.project.name}-${pluginversion}"/>
<path id="project.class.path">
<pathelement location="${lib}/${pmdjar}"/>
<pathelement location="${lib}/jdeveloper.jar"/>
<pathelement location="lib/${pmdjar}"/>
<pathelement location="lib/jdeveloper.jar"/>
<pathelement location="lib/javatools.jar"/>
<pathelement location="lib/ide.jar"/>
<pathelement location="build"/>
</path>
<target name="delete">
<delete file="${lib}/${ant.project.name}.jar"/>
<delete file="lib/${ant.project.name}.jar"/>
<delete file="${jdeveloper.install.dir}/${ant.project.name}.jar"/>
<delete dir="build"/>
<mkdir dir="build"/>
@ -34,7 +35,7 @@
<target name="jar" depends="compile">
<copy file="etc/jdev-ext.xml" todir="build/meta-inf"/>
<jar jarfile="${lib}/${ant.project.name}-${pluginversion}.jar">
<jar jarfile="lib/${ant.project.name}-${pluginversion}.jar">
<fileset dir="build" excludes="**/*.di,**/*.i"/>
</jar>
</target>
@ -42,18 +43,18 @@
<target name="dist" depends="delete,jar">
<mkdir dir="${jdeveloper.install.dir}/lib"/>
<copy file="${lib}/${ant.project.name}-${pluginversion}.jar" todir="${jdeveloper.install.dir}/lib"/>
<copy file="${lib}/${pmdjar}" todir="${jdeveloper.install.dir}/lib"/>
<copy file="${lib}/saxpath-1.0-fcs.jar" todir="${jdeveloper.install.dir}/lib"/>
<copy file="${lib}/jaxen-core-1.0-fcs.jar" todir="${jdeveloper.install.dir}/lib"/>
<copy file="lib/${ant.project.name}-${pluginversion}.jar" todir="${jdeveloper.install.dir}/lib"/>
<copy file="lib/${pmdjar}" todir="${jdeveloper.install.dir}/lib"/>
<copy file="lib/saxpath-1.0-fcs.jar" todir="${jdeveloper.install.dir}/lib"/>
<copy file="lib/jaxen-core-1.0-fcs.jar" todir="${jdeveloper.install.dir}/lib"/>
</target>
<target name="release" depends="clean,jar">
<mkdir dir="tmp/${ant.project.name}-${pluginversion}/lib"/>
<copy file="${lib}/${ant.project.name}-${pluginversion}.jar" todir="tmp/${ant.project.name}-${pluginversion}/lib/"/>
<copy file="${lib}/${pmdjar}" todir="tmp/${ant.project.name}-${pluginversion}/lib/"/>
<copy file="${lib}/saxpath-1.0-fcs.jar" todir="tmp/${ant.project.name}-${pluginversion}/lib"/>
<copy file="${lib}/jaxen-core-1.0-fcs.jar" todir="tmp/${ant.project.name}-${pluginversion}/lib"/>
<copy file="lib/${ant.project.name}-${pluginversion}.jar" todir="tmp/${ant.project.name}-${pluginversion}/lib/"/>
<copy file="lib/${pmdjar}" todir="tmp/${ant.project.name}-${pluginversion}/lib/"/>
<copy file="lib/saxpath-1.0-fcs.jar" todir="tmp/${ant.project.name}-${pluginversion}/lib"/>
<copy file="lib/jaxen-core-1.0-fcs.jar" todir="tmp/${ant.project.name}-${pluginversion}/lib"/>
<zip zipfile="pmd-jdeveloper-bin-${pluginversion}.zip" basedir="tmp/"/>
<move file="pmd-jdeveloper-bin-${pluginversion}.zip" todir="/home/tom/tmp"/>
<delete dir="tmp"/>

View File

@ -1,5 +1,5 @@
????? - 0.9:
March 17, 2004 - 0.9:
Updated to work with JDeveloper 9.0.5 - i.e., 10g.
March 16, 2004 - 0.8:
Updated PMD version to 1.6.

View File

@ -1,5 +1,5 @@
update the release date in the changelog
change the build.xml to reflect pmd-jdeveloper release 0.8
change the build.xml to reflect pmd-jdeveloper release 0.9
Create the binary release:
ant release
@ -10,22 +10,22 @@ TESTS:
Create the src release:
cd ~/data/pmd/
cvs -q tag -D tomorrow "pmd_jdeveloper_release_0_8" pmd-jdeveloper
cvs -q tag -D tomorrow "pmd_jdeveloper_release_0_9" pmd-jdeveloper
rm -rf ~/tmp/pmd-jdeveloper
mkdir -p ~/tmp/pmd-jdeveloper
cvs -q export -d tmp -r pmd_jdeveloper_release_0_8 pmd-jdeveloper
cvs -q export -d tmp -r pmd_jdeveloper_release_0_9 pmd-jdeveloper
mv tmp/* ~/tmp/pmd-jdeveloper
rmdir tmp/
cp pmd-jdeveloper/lib/pmd-jdeveloper-0.8.jar ~/tmp/pmd-jdeveloper/lib
cp pmd-jdeveloper/lib/pmd-jdeveloper-0.9.jar ~/tmp/pmd-jdeveloper/lib
cd ~/tmp
zip -q -r pmd-jdeveloper-src-0.8.zip pmd-jdeveloper
ncftpput upload.sourceforge.net incoming/ pmd-jdeveloper-bin-0.8.zip pmd-jdeveloper-src-0.8.zip
zip -q -r pmd-jdeveloper-src-0.9.zip pmd-jdeveloper
ncftpput upload.sourceforge.net incoming/ pmd-jdeveloper-bin-0.9.zip pmd-jdeveloper-src-0.9.zip
rm -rf pmd-jdeveloper/
Go to Admin, Edit/Release Files, click on Add new release
Paste stuff into the changelog/readme boxes
Add the pmd-jdeveloper-src-0.8.zip file
Add the pmd-jdeveloper-bin-0.8.zip file
Add the pmd-jdeveloper-src-0.9.zip file
Add the pmd-jdeveloper-bin-0.9.zip file
Classify the file
Submit some news saying "hey, new release of the jdeveloper plugin!"

View File

@ -1,7 +1,7 @@
<?xml version = '1.0' encoding = 'windows-1252'?>
<extensions xmlns="http://xmlns.oracle.com/jdeveloper/904/extensions">
<extensions xmlns="http://xmlns.oracle.com/jdeveloper/905/extensions">
<feature>
<group name="" nlsclass="">
<group name="" nlsclass="" exclusive="false">
<description>PMD static analysis plugin</description>
<extension>
<addin>net.sourceforge.pmd.jdeveloper.Plugin</addin>

BIN
pmd-jdeveloper/lib/ide.jar Normal file

Binary file not shown.

Binary file not shown.

View File

@ -16,6 +16,7 @@ import oracle.ide.config.IdeSettings;
import oracle.ide.model.Document;
import oracle.ide.model.Element;
import oracle.ide.model.Project;
import oracle.ide.model.Reference;
import oracle.ide.panels.Navigable;
import oracle.jdeveloper.model.JProject;
import oracle.jdeveloper.model.JavaSourceNode;
@ -98,6 +99,11 @@ public class Plugin implements Addin, Controller, ContextMenuListener {
Iterator i = ((Project)context.getDocument()).getListOfChildren().iterator();
while (i.hasNext()) {
Object obj = i.next();
if (!(obj instanceof Reference)) {
System.out.println("PMD plugin expected a Reference, found a " + obj.getClass() + " instead. Odd.");
continue;
}
obj = ((Reference)obj).getData();
if (!(obj instanceof Document)) {
continue;
}