Release 1.9.0.0.1 for JDeveloper 11g Developer Preview 2
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5633 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -1,18 +1,18 @@
|
||||
<project name="pmd-jdeveloper1013" default="compile" basedir="../">
|
||||
<project name="pmd-jdeveloper1111" default="compile" basedir="../">
|
||||
<!-- property section start -->
|
||||
<property name="config" value="config/"/>
|
||||
<property name="src" value="src/"/>
|
||||
<property name="etc" value="etc/"/>
|
||||
<property name="pmdjar" value="pmd-4.0.jar"/>
|
||||
<property name="pluginversion" value="1.9"/>
|
||||
<property name="pluginversion" value="1.9.0.0.1"/>
|
||||
<property name="mainclass" value="net.sourceforge.pmd.jdeveloper"/>
|
||||
<property name="jdeveloper.dir" value="C:/Oracle/10gJD10133"/>
|
||||
<property name="jdeveloper.dir" value="C:\Oracle\11gJD11110"/>
|
||||
<property name="jdeveloper.ext.subdir" value="jdev/extensions"/>
|
||||
<property name="release.dir"
|
||||
value="C:/Documents and Settings/Torsten/My Documents/Eigene Programme/Java/PMD/releases"/>
|
||||
<property name="uploadbundle.scp.user" value="***"/>
|
||||
<property name="uploadbundle.scp.pwd" value="***"/>
|
||||
<property name="upload.ftp.pwd" value="***"/>
|
||||
<property name="uploadbundle.scp.user" value=""/>
|
||||
<property name="uploadbundle.scp.pwd" value=""/>
|
||||
<property name="upload.ftp.pwd" value=""/>
|
||||
<!-- builded properties -->
|
||||
<property name="release.dirname" value="${mainclass}.${pluginversion}"/>
|
||||
<property name="release.jarname" value="${release.dirname}.jar"/>
|
||||
@ -27,9 +27,10 @@
|
||||
<!-- property section end -->
|
||||
<path id="project.class.path">
|
||||
<pathelement location="lib/${pmdjar}"/>
|
||||
<pathelement location="${jdeveloper.dir}/ide/lib/javax-ide.jar"/>
|
||||
<pathelement location="${jdeveloper.dir}/ide/lib/javatools.jar"/>
|
||||
<pathelement location="${jdeveloper.dir}/ide/lib/ide.jar"/>
|
||||
<pathelement location="${jdeveloper.dir}/ide/extensions/oracle.ide.ceditor.jar"/>
|
||||
<pathelement location="${jdeveloper.dir}/ide/extensions/oracle.ide.jar"/>
|
||||
<pathelement location="${jdeveloper.dir}/ide/lib/idert.jar"/>
|
||||
<pathelement location="${jdeveloper.dir}/jdev/lib/javacore.jar"/>
|
||||
<pathelement location="build"/>
|
||||
</path>
|
||||
<target name="delete">
|
||||
|
@ -1,16 +1,10 @@
|
||||
<?xml version = '1.0'?>
|
||||
<update-bundle version="1.0"
|
||||
xmlns="http://xmlns.oracle.com/jdeveloper/updatebundle"
|
||||
xmlns:u="http://xmlns.oracle.com/jdeveloper/update">
|
||||
<u:update id="net.sourceforge.pmd.jdeveloper">
|
||||
<u:name>PMD JDeveloper Extension</u:name>
|
||||
<u:version>1.9</u:version>
|
||||
<u:author>Torsten Kleiber</u:author>
|
||||
<u:author-url>http://pmd.sourceforge.net/</u:author-url>
|
||||
<u:description>Provides integrated support for PMD 4.0 in JDeveloper 10.1.3 - 11.1.1.</u:description>
|
||||
<u:requirements>
|
||||
<u:requires-extension id="oracle.jdeveloper" minVersion="10.1.3"
|
||||
maxVersion="11.1.1"/>
|
||||
</u:requirements>
|
||||
</u:update>
|
||||
<?xml version = '1.0' encoding = 'UTF-8'?>
|
||||
<update-bundle version="1.0" xmlns="http://xmlns.oracle.com/jdeveloper/updatebundle">
|
||||
<update id="net.sourceforge.pmd.jdeveloper" xmlns="http://xmlns.oracle.com/jdeveloper/update">
|
||||
<name>PMD JDeveloper Extension</name>
|
||||
<version>1.9.0.0.1</version>
|
||||
<author>Torsten Kleiber</author>
|
||||
<author-url>http://pmd.sourceforge.net/</author-url>
|
||||
<description>Provides integrated support for PMD 4.0 in JDeveloper 11g Technology Preview 2.</description>
|
||||
</update>
|
||||
</update-bundle>
|
||||
|
@ -6,7 +6,21 @@
|
||||
<u:version>1.9</u:version>
|
||||
<u:author>Torsten Kleiber</u:author>
|
||||
<u:author-url>http://pmd.sourceforge.net</u:author-url>
|
||||
<u:description>Provides integrated support for PMD 4.0 in JDeveloper 10.1.3 - 11.1.1.</u:description>
|
||||
<u:description>Provides integrated support for PMD 4.0 in JDeveloper 10.1.3. - 11g Technology Preview 1.</u:description>
|
||||
<u:bundle-url>http://pmd.sourceforge.net/pmd-jdeveloper1013-1.9.zip</u:bundle-url>
|
||||
<u:requirements>
|
||||
<u:requires-extension id="oracle.jdeveloper" minVersion="10.1.3.00" maxVersion="11.1.1.0.20.45" />
|
||||
</u:requirements>
|
||||
</u:update>
|
||||
<u:update id="net.sourceforge.pmd.jdeveloper">
|
||||
<u:name>PMD JDeveloper Extension</u:name>
|
||||
<u:version>1.9.0.0.1</u:version>
|
||||
<u:author>Torsten Kleiber</u:author>
|
||||
<u:author-url>http://pmd.sourceforge.net</u:author-url>
|
||||
<u:description>Provides integrated support for PMD 4.0 in JDeveloper 11g Technology Preview 2.</u:description>
|
||||
<u:bundle-url>http://pmd.sourceforge.net/pmd-jdeveloper1111-1.9.0.0.1.zip</u:bundle-url>
|
||||
<u:requirements>
|
||||
<u:requires-extension id="oracle.jdeveloper" minVersion="11.1.1.0.20.46.84" maxVersion="11.1.1.0.20.46.84" />
|
||||
</u:requirements>
|
||||
</u:update>
|
||||
</updates>
|
@ -1,6 +1,9 @@
|
||||
November 06, 2007 - 1.9.0.0.1:
|
||||
Upgraded for use in JDeveloper 11.1.1 Developer Preview 2
|
||||
|
||||
August 06, 2007 - 1.9:
|
||||
Upgraded to PMD 4.0
|
||||
Upgraded for use in JDeveloper 10.1.3 to 11.1.1
|
||||
Upgraded for use in JDeveloper 10.1.3 to 11.1.1 Developer Preview 1
|
||||
|
||||
January 30, 2005 - 1.8:
|
||||
Better presentation of the rule violations.
|
||||
|
@ -1,4 +1,4 @@
|
||||
change the build.xml, bundle.xml, center.xml to reflect pmd-jdeveloper1013 release
|
||||
change the build.xml, bundle.xml, center.xml to reflect pmd-jdeveloper1111 release
|
||||
update the release date in the changelog
|
||||
Update Plugin.version() to reflect release
|
||||
|
||||
@ -22,15 +22,15 @@ src release:
|
||||
// TODO automation by ant, if subversion tasks are available
|
||||
checkin
|
||||
// TODO automation by ant, if subversion tasks are available
|
||||
copy to tags/pmd-jdeveloper/pmd_jdeveloper1013_release_X_X
|
||||
copy to tags/pmd-jdeveloper/pmd_jdeveloper1111_release_X_X
|
||||
ant releasesrc
|
||||
|
||||
release on website:
|
||||
ant upload
|
||||
Go to Admin, Edit/Release Files, click on Add new release
|
||||
Paste stuff into the changelog/readme boxes
|
||||
Add the pmd-jdeveloper1013-src-1.9.zip file
|
||||
Add the pmd-jdeveloper1013-bin-1.9.zip file
|
||||
Add the pmd-jdeveloper1111-src-1.9.0.0.1.zip file
|
||||
Add the pmd-jdeveloper1111-bin-1.9.0.0.1.zip file
|
||||
Classify the file
|
||||
|
||||
Submit some news saying "hey, new release of the jdeveloper 1013 plugin!"
|
||||
Submit some news saying "hey, new release of the jdeveloper 1111 plugin!"
|
||||
|
@ -1,28 +1,27 @@
|
||||
<?xml version = '1.0' encoding = 'UTF-8'?>
|
||||
<ex:extension xmlns:ex="http://jcp.org/jsr/198/extension-manifest"
|
||||
xmlns="http://xmlns.oracle.com/jdeveloper/1013/extension"
|
||||
xmlns:jdev="http://xmlns.oracle.com/jdeveloper/1013/jdev-libraries"
|
||||
id="net.sourceforge.pmd.jdeveloper" version="1.9"
|
||||
<extension xmlns="http://jcp.org/jsr/198/extension-manifest"
|
||||
id="net.sourceforge.pmd.jdeveloper" version="1.9.0.0.1"
|
||||
esdk-version="1.0">
|
||||
<ex:name>PMD JDeveloper Extension</ex:name>
|
||||
<ex:owner>Torsten Kleiber</ex:owner>
|
||||
<ex:classpaths>
|
||||
<ex:classpath>${ide.extension.install.home}/lib/pmd-4.0.jar</ex:classpath>
|
||||
<ex:classpath>${ide.extension.install.home}/lib/jaxen-1.1.jar</ex:classpath>
|
||||
<ex:classpath>${ide.extension.install.home}/lib/asm-3.0.jar</ex:classpath>
|
||||
</ex:classpaths>
|
||||
<ex:dependencies>
|
||||
<ex:import version="10.1.3">oracle.jdeveloper</ex:import>
|
||||
</ex:dependencies>
|
||||
<ex:hooks>
|
||||
<jdeveloper-hook>
|
||||
<name>PMD JDeveloper Extension</name>
|
||||
<owner>Torsten Kleiber</owner>
|
||||
<dependencies>
|
||||
<import>oracle.javacore</import>
|
||||
<import>oracle.ide.ceditor</import>
|
||||
</dependencies>
|
||||
<classpaths>
|
||||
<classpath>net.sourceforge.pmd.jdeveloper.1.9.0.0.1/lib/pmd-4.0.jar</classpath>
|
||||
<classpath>net.sourceforge.pmd.jdeveloper.1.9.0.0.1/lib/jaxen-1.1.jar</classpath>
|
||||
<classpath>net.sourceforge.pmd.jdeveloper.1.9.0.0.1/lib/asm-3.0.jar</classpath>
|
||||
</classpaths>
|
||||
<hooks>
|
||||
<jdeveloper-hook xmlns="http://xmlns.oracle.com/jdeveloper/1013/extension">
|
||||
<addins>
|
||||
<addin>net.sourceforge.pmd.jdeveloper.Plugin</addin>
|
||||
</addins>
|
||||
</jdeveloper-hook>
|
||||
<ex:feature-hook>
|
||||
<ex:description>Provides integrated support for PMD 4.0 in JDeveloper 10.1.3 - 11.1.1.</ex:description>
|
||||
<ex:optional>true</ex:optional>
|
||||
</ex:feature-hook>
|
||||
</ex:hooks>
|
||||
</ex:extension>
|
||||
<feature-hook>
|
||||
<description>Provides integrated support for PMD 4.0 in JDeveloper 11g Technology Preview 2.</description>
|
||||
<optional>false</optional>
|
||||
</feature-hook>
|
||||
</hooks>
|
||||
</extension>
|
||||
|
@ -52,6 +52,7 @@
|
||||
<value n="dvt-geomap-visible-to-rendered" v="true"/>
|
||||
<value n="dvt-graph-visible-to-rendered" v="true"/>
|
||||
<hash n="extensiondtProperties">
|
||||
<value n="extensiondt.manageclasspath" v="true"/>
|
||||
<url n="extensiondt.manifest" path="etc/extension.xml"/>
|
||||
</hash>
|
||||
<hash n="oracle.adfdtinternal.model.ide.settings.ADFMSettings">
|
||||
@ -148,38 +149,14 @@
|
||||
<hash n="oracle.jdevimpl.config.JProjectLibraries">
|
||||
<list n="exportedReferences">
|
||||
<hash>
|
||||
<url n="id" path="../../../../../../../Oracle/10gJD10133/jdev/system/oracle.jdeveloper.10.1.3.41.57/PMD 4.0.library"/>
|
||||
<value n="isJDK" v="false"/>
|
||||
</hash>
|
||||
<hash>
|
||||
<value n="id" v="JDeveloper Extension SDK"/>
|
||||
<value n="isJDK" v="false"/>
|
||||
</hash>
|
||||
<hash>
|
||||
<value n="id" v="Oracle Java Compiler"/>
|
||||
<value n="isJDK" v="false"/>
|
||||
</hash>
|
||||
<hash>
|
||||
<value n="id" v="EJB Data Control"/>
|
||||
<url n="id" path="../../../../../Application Data/JDeveloper/system11.1.1.0.20.46.84/o.jdeveloper/Extension SDK Doc.library"/>
|
||||
<value n="isJDK" v="false"/>
|
||||
</hash>
|
||||
</list>
|
||||
<hash n="internalDefinitions"/>
|
||||
<list n="libraryReferences">
|
||||
<hash>
|
||||
<url n="id" path="../../../../../../../Oracle/10gJD10133/jdev/system/oracle.jdeveloper.10.1.3.41.57/PMD 4.0.library"/>
|
||||
<value n="isJDK" v="false"/>
|
||||
</hash>
|
||||
<hash>
|
||||
<value n="id" v="JDeveloper Extension SDK"/>
|
||||
<value n="isJDK" v="false"/>
|
||||
</hash>
|
||||
<hash>
|
||||
<value n="id" v="Oracle Java Compiler"/>
|
||||
<value n="isJDK" v="false"/>
|
||||
</hash>
|
||||
<hash>
|
||||
<value n="id" v="EJB Data Control"/>
|
||||
<url n="id" path="../../../../../Application Data/JDeveloper/system11.1.1.0.20.46.84/o.jdeveloper/Extension SDK Doc.library"/>
|
||||
<value n="isJDK" v="false"/>
|
||||
</hash>
|
||||
</list>
|
||||
|
@ -57,6 +57,7 @@ import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import oracle.jdeveloper.compiler.BuildSystemConfiguration;
|
||||
import oracle.jdeveloper.compiler.OjcConfiguration;
|
||||
|
||||
|
||||
@ -167,6 +168,7 @@ public class Plugin implements Addin, Controller, ContextMenuListener {
|
||||
private boolean added;
|
||||
private Map pmdFileToNodeMap = new HashMap(); // whew, this is kludgey
|
||||
private Map cpdFileToNodeMap = new HashMap(); // whew, this is kludgey
|
||||
private static BuildSystemConfiguration config;
|
||||
|
||||
// Addin
|
||||
|
||||
@ -206,8 +208,8 @@ public class Plugin implements Addin, Controller, ContextMenuListener {
|
||||
EditorManager.getEditorManager().getContextMenu().removeContextMenuListener(this);
|
||||
}
|
||||
|
||||
public float version() {
|
||||
return 1.9f;
|
||||
public String version() {
|
||||
return "1.9.0.0.1";
|
||||
}
|
||||
|
||||
public float ideVersion() {
|
||||
@ -265,17 +267,17 @@ public class Plugin implements Addin, Controller, ContextMenuListener {
|
||||
e.getReason().printStackTrace();
|
||||
JOptionPane.showMessageDialog(null,
|
||||
"Error while running PMD: " +
|
||||
"\n" + e.getMessage() + "\n" +
|
||||
e.getReason().getMessage(),
|
||||
PMD_TITLE,
|
||||
JOptionPane.ERROR_MESSAGE);
|
||||
"\n" +
|
||||
e.getMessage() + "\n" +
|
||||
e.getReason().getMessage(), PMD_TITLE,
|
||||
JOptionPane.ERROR_MESSAGE);
|
||||
} catch (Exception e) {
|
||||
logMessage(e.getMessage());
|
||||
e.printStackTrace();
|
||||
JOptionPane.showMessageDialog(null,
|
||||
"Error while running PMD: " +
|
||||
"\n" + e.getMessage(), PMD_TITLE,
|
||||
JOptionPane.ERROR_MESSAGE);
|
||||
"\n" +
|
||||
e.getMessage(), PMD_TITLE, JOptionPane.ERROR_MESSAGE);
|
||||
}
|
||||
} else if (ideAction.getCommandId() == RUN_CPD_CMD_ID) {
|
||||
try {
|
||||
@ -331,8 +333,7 @@ public class Plugin implements Addin, Controller, ContextMenuListener {
|
||||
}
|
||||
|
||||
private void setJavaVersion(Context context, PMD pmd) {
|
||||
OjcConfiguration config =
|
||||
OjcConfiguration.getInstance(context.getProject());
|
||||
config = BuildSystemConfiguration.getInstance(context.getProject());
|
||||
String source = config.getSource();
|
||||
if (source.equals("1.6")) {
|
||||
pmd.setJavaVersion(SourceType.JAVA_16);
|
||||
|
Reference in New Issue
Block a user