1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Add eclipse-pmd 1.1.2, scan Java source code and look for potential

problems.

PR:		57956
Submitted by:	Bruno Van Den Bossche <bruno.van.den.bossche@pandora.be>
This commit is contained in:
Pete Fritchman 2004-01-10 04:14:06 +00:00
parent 87c1921120
commit c07e17d8bc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=97834
5 changed files with 92 additions and 0 deletions

View File

@ -17,6 +17,7 @@
SUBDIR += eclipse-gef
SUBDIR += eclipse-gef-examples
SUBDIR += eclipse-langpack
SUBDIR += eclipse-pmd
SUBDIR += forte
SUBDIR += gj
SUBDIR += gj-jdk11

37
java/eclipse-pmd/Makefile Normal file
View File

@ -0,0 +1,37 @@
# New ports collection makefile for: eclipse-pmd
# Date created: October 3, 2003
# Whom: Bruno Van Den Bossche <bruno.van.den.bossche@pandora.be>
#
# $FreeBSD$
#
PORTNAME= eclipse-pmd
PORTVERSION= 1.1.2
CATEGORIES= java devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pmd
DISTNAME= pmd-eclipse-bin-${PORTVERSION}
DIST_SUBDIR= eclipse
MAINTAINER= ports@FreeBSD.org
COMMENT= Scan Java source code and look for potential problems
NO_BUILD= yes
NO_WRKSUBDIR= yes
USE_ZIP= yes
CPIO?= cpio --quiet -pdmu -R
PLUGIN_DIR= "net.sourceforge.pmd.eclipse_${PORTVERSION}"
PLIST_SUB+= PLUGIN_DIR="${PLUGIN_DIR}"
do-install:
@${MKDIR} ${PREFIX}/eclipse
@${MKDIR} ${PREFIX}/eclipse/plugins
@${MKDIR} ${PREFIX}/eclipse/plugins/${PLUGIN_DIR}
cd ${WRKSRC}/${PLUGIN_DIR} && ${FIND} . \
| ${CPIO} ${SHAREOWN}:${SHAREGRP} \
${PREFIX}/eclipse/plugins/${PLUGIN_DIR}
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (eclipse/pmd-eclipse-bin-1.1.2.zip) = cd46079fc6c98e4bc6ff2586eb654353

View File

@ -0,0 +1,12 @@
PMD scans Java source code and looks for potential problems like:
* Unused local variables
* Empty catch blocks
* Unused parameters
* Empty 'if' statements
* Duplicate import statements
* Unused private methods
* Classes which could be Singletons
* Short/long variable and method names
WWW: http://pmd.sourceforge.net/

View File

@ -0,0 +1,41 @@
eclipse/plugins/%%PLUGIN_DIR%%/CHANGELOG.txt
eclipse/plugins/%%PLUGIN_DIR%%/LICENSE.txt
eclipse/plugins/%%PLUGIN_DIR%%/README.txt
eclipse/plugins/%%PLUGIN_DIR%%/RELNOTES.txt
eclipse/plugins/%%PLUGIN_DIR%%/TODO.txt
eclipse/plugins/%%PLUGIN_DIR%%/build.properties
eclipse/plugins/%%PLUGIN_DIR%%/doc.zip
eclipse/plugins/%%PLUGIN_DIR%%/icons/error.gif
eclipse/plugins/%%PLUGIN_DIR%%/icons/file.gif
eclipse/plugins/%%PLUGIN_DIR%%/icons/info.gif
eclipse/plugins/%%PLUGIN_DIR%%/icons/pmd-icon-16.gif
eclipse/plugins/%%PLUGIN_DIR%%/icons/pmd-icon-32.gif
eclipse/plugins/%%PLUGIN_DIR%%/icons/prio_1.gif
eclipse/plugins/%%PLUGIN_DIR%%/icons/prio_2.gif
eclipse/plugins/%%PLUGIN_DIR%%/icons/prio_3.gif
eclipse/plugins/%%PLUGIN_DIR%%/icons/prio_4.gif
eclipse/plugins/%%PLUGIN_DIR%%/icons/prio_5.gif
eclipse/plugins/%%PLUGIN_DIR%%/icons/prj.gif
eclipse/plugins/%%PLUGIN_DIR%%/icons/remvio.gif
eclipse/plugins/%%PLUGIN_DIR%%/icons/warn.gif
eclipse/plugins/%%PLUGIN_DIR%%/lib/commons-logging.jar
eclipse/plugins/%%PLUGIN_DIR%%/lib/jaxen-core-1.0-fcs.jar
eclipse/plugins/%%PLUGIN_DIR%%/lib/log4j-1.2.8.jar
eclipse/plugins/%%PLUGIN_DIR%%/lib/pmd-1.2.1.jar
eclipse/plugins/%%PLUGIN_DIR%%/lib/saxpath-1.0-fcs.jar
eclipse/plugins/%%PLUGIN_DIR%%/log4j.xml
eclipse/plugins/%%PLUGIN_DIR%%/messages.properties
eclipse/plugins/%%PLUGIN_DIR%%/nl/fr/messages.properties
eclipse/plugins/%%PLUGIN_DIR%%/plugin.properties
eclipse/plugins/%%PLUGIN_DIR%%/plugin.xml
eclipse/plugins/%%PLUGIN_DIR%%/plugin_fr.properties
eclipse/plugins/%%PLUGIN_DIR%%/pmd-eclipse.jar
eclipse/plugins/%%PLUGIN_DIR%%/toc.xml
@dirrm eclipse/plugins/%%PLUGIN_DIR%%/nl/fr
@dirrm eclipse/plugins/%%PLUGIN_DIR%%/nl
@dirrm eclipse/plugins/%%PLUGIN_DIR%%/lib
@dirrm eclipse/plugins/%%PLUGIN_DIR%%/icons
@dirrm eclipse/plugins/%%PLUGIN_DIR%%
@unexec rmdir %D/eclipse/plugins 2>/dev/null || true
@unexec rmdir %D/eclipse/features 2>/dev/null || true
@unexec rmdir %D/eclipse 2>/dev/null || true