LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File findbugs-script of Package findbugs (Project openSUSE:Factory)

#!/bin/sh
# 
# findbugs script
# JPackage Project <http://www.jpackage.org/>
# $Id$

# Source functions library
. /usr/share/java-utils/java-functions

# Source system prefs
if [ -f /etc/findbugs.conf ] ; then 
  . /etc/findbugs.conf
fi

# Source user prefs
if [ -f $HOME/.findbugsrc ] ; then 
  . $HOME/.findbugsrc
fi

# Configuration
if [ -z "$FINDBUGS_TEXT" ] ; then
  MAIN_CLASS=edu.umd.cs.findbugs.gui.FindBugsFrame
else
  MAIN_CLASS=edu.umd.cs.findbugs.FindBugs
fi

BASE_DIR=/usr/share/java/findbugs
BASE_FLAGS="-Dfindbugs.home=/usr/share/java/findbugs -Xmx256m"

# Set parameters
set_jvm
CLASSPATH=$(build-classpath bcel5.3 commons-lang dom4j findbugs jaxen jcip-annotations jsr-305 objectweb-asm/asm objectweb-asm/asm-commons objectweb-asm/asm-tree)
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS

# Let's start
run "$@"