diff --git a/pmd/bin/cpdgui.sh b/pmd/bin/cpdgui.sh new file mode 100644 index 0000000000..9bd86ddf04 --- /dev/null +++ b/pmd/bin/cpdgui.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +# Shell script to launch PMD's Copy Paste Detector GUI on a +# UNIX system, based on the cpdgui.bat file used to do the +# same on MS Windows systems. This requires that the "java" +# command be in your executable PATH. + +# Version number for this PMD release +VERSION=4.2.6 + +BINDIR=`dirname $0` +ROOTDIR=${BINDIR}/.. +PMDJAR=${ROOTDIR}/lib/pmd-${VERSION}.jar +JARPATH=${TOPDIR}/lib/asm-3.2.jar:${TOPDIR}/lib/jaxen-1.1.1.jar +JVMOPTS=-Xmx512m +MAIN_CLASS=net.sourceforge.pmd.cpd.GUI + +java ${JVMOPTS} -cp "${PMDJAR}:${JARPATH}" ${MAIN_CLASS} $* diff --git a/pmd/etc/changelog.txt b/pmd/etc/changelog.txt index 931b26a82a..eb6b22dc3c 100644 --- a/pmd/etc/changelog.txt +++ b/pmd/etc/changelog.txt @@ -9,6 +9,7 @@ Improve TooManyMethods rule - thanks to a patch from Riku Nykanen Improve DoNotCallSystemExit - thanks to a patch from Steven Christou Fix false negative for UseArraysAsList when the array was passed as method parameter - thanks to Andy Throgmorton Enhanced SuspiciousEqualsMethodName rule - thanks to Andy Throgmorton +Add a script to launch CPDGUI on Unix system - thanks to Tom Wheeler New Rule: Basic ruleset: DontCallThreadRun - thanks to Andy Throgmorton diff --git a/pmd/xdocs/credits.xml b/pmd/xdocs/credits.xml index b7fcfed358..194629f306 100644 --- a/pmd/xdocs/credits.xml +++ b/pmd/xdocs/credits.xml @@ -324,6 +324,7 @@
  • Tammo van Lessen - new rule GuardDebugLogging for Jakarta Commons Logging ruleset.
  • Steven Christou - patch improving DoNotCallSystemExit rule
  • Dinesh Bolkensteyn and SonarSource - Java 7 grammar support
  • +
  • Tom Wheeler - contribute a launch script for CPD GUI