forked from phoedos/pmd
Now the PMD tab closes if there are no rule violations
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1671 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
<property name="build" value="build/"/>
|
||||
<property name="pmdjar" value="pmd-1.03.jar"/>
|
||||
<property name="pluginversion" value="0.1"/>
|
||||
<property name="jdeveloper.install.dir" value="C:\downloads\jdev9031\jdev\lib\ext\${ant.project.name}-${pluginversion}"/>
|
||||
<property name="jdeveloper.install.dir" value="/home/tom/jdev/jdev/lib/ext/${ant.project.name}-${pluginversion}"/>
|
||||
|
||||
<path id="project.class.path">
|
||||
<pathelement location="${lib}/${pmdjar}"/>
|
||||
@ -34,14 +34,14 @@
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="compile">
|
||||
<replace file="${etc}/manifest.mf" token="#pluginversion#" value="${pluginversion}"/>
|
||||
<jar jarfile="${lib}/${ant.project.name}-${pluginversion}.jar" manifest="${etc}\manifest.mf">
|
||||
<replace file="${etc}/Manifest.mf" token="#pluginversion#" value="${pluginversion}"/>
|
||||
<jar jarfile="${lib}/${ant.project.name}-${pluginversion}.jar" manifest="${etc}\Manifest.mf">
|
||||
<fileset dir="${build}" excludes="**/*.di,**/*.i"/>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
|
||||
<target name="dist" depends="jar">
|
||||
<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"/>
|
||||
@ -52,7 +52,7 @@
|
||||
<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/"/>
|
||||
<zip zipfile="pmd-jdeveloper-bin-${pluginversion}.zip" basedir="tmp"/>
|
||||
<move file="pmd-jdeveloper-bin-${pluginversion}.zip" todir="c:\tmp"/>
|
||||
<move file="pmd-jdeveloper-bin-${pluginversion}.zip" todir="/home/tom/tmp"/>
|
||||
<delete dir="tmp"/>
|
||||
</target>
|
||||
|
||||
|
@ -1,6 +0,0 @@
|
||||
@echo off
|
||||
set CLASSPATH=..\build
|
||||
set CLASSPATH=%CLASSPATH%;..\lib\ErrorList.jar
|
||||
set CLASSPATH=%CLASSPATH%;..\lib\jedit.jar
|
||||
set CVS_RSH=c:\bin\ssh\ssh
|
||||
set HOME=c:
|
@ -129,6 +129,7 @@ public class Plugin implements Addin, Controller, ContextMenuListener {
|
||||
rvPage.clearAll();
|
||||
if (ctx.getReport().isEmpty()) {
|
||||
JOptionPane.showMessageDialog(null, "No problems found", TITLE, JOptionPane.INFORMATION_MESSAGE);
|
||||
rvPage.close();
|
||||
} else {
|
||||
for (Iterator i = ctx.getReport().iterator(); i.hasNext();) {
|
||||
rvPage.add((RuleViolation)i.next());
|
||||
|
Reference in New Issue
Block a user