summarylogtreecommitdiffstats
path: root/pmdapp
blob: 01d08578760a1c655698b83f089338d024c22e70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env sh

app=$(basename $0)
case "$app" in
  'pmd')
    readonly class='net.sourceforge.pmd.PMD'
    ;;
  'pmd-cpd')
    readonly class='net.sourceforge.pmd.cpd.CPD'
    ;;
  'pmd-designer')
    readonly class='net.sourceforge.pmd.util.fxdesigner.Designer'
    ;;
  'pmd-designerold')
    readonly class='net.sourceforge.pmd.util.designer.Designer'
    ;;
  'pmd-bgastviewer')
    readonly class='net.sourceforge.pmd.util.viewer.Viewer'
    ;;
  'pmd-cpdgui')
    readonly class='net.sourceforge.pmd.cpd.GUI'
    ;;
esac

for file in /usr/share/java/pmd/*.jar; do
  CP="$CP:$file"
done

exec /usr/bin/java -cp "$CP" "$class" "$@"