source: trunk/dports/java/pmd/files/pmd @ 8648

Last change on this file since 8648 was 8648, checked in by mww, 16 years ago

new port java/pmd

  • Property svn:eol-style set to native
File size: 587 bytes
Line 
1#!/bin/sh
2PREFIX=_PREFIX_
3if [ $# -ne 3 ]; then
4        echo "Usage $0 source.java format rule"
5        echo " format: html, text, xml"
6        echo " rules: basic, braces, clone, codesize, controversial, coupling, design, favorites, finalizers, imports, javabeans, junit, naming, newrules, scratchpad, strictexception, strings, unusedcode"
7else
8        RULE=${PREFIX}/share/pmd/${3}.xml
9        java -classpath ${PREFIX}/share/java/xml-apis.jar:${PREFIX}/share/java/xercesImpl.jar:${PREFIX}/share/java/saxpath.jar:${PREFIX}/share/java/jaxen-core.jar:${PREFIX}/share/java/pmd.jar net.sourceforge.pmd.PMD $1 $2 ${RULE}
10fi
11
Note: See TracBrowser for help on using the repository browser.