/usr/bin/fbwrap is in findbugs 2.0.3+repack-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | #! /bin/sh
# A convenient way to call the main() method of a class
# in findbugs.jar.
program="$0"
# Follow symlinks until we get to the actual file.
while [ -h "$program" ]; do
link=`ls -ld "$program"`
link=`expr "$link" : '.*-> \(.*\)'`
if [ "`expr "$link" : '/.*'`" = 0 ]; then
# Relative
dir=`dirname "$program"`
program="$dir/$link"
else
# Absolute
program="$link"
fi
done
# Assume findbugs home directory is the parent
# of the directory containing the script (which should
# normally be "$findbugs_home/bin").
dir=`dirname "$program"`
findbugs_home="$dir/.."
# Handle FHS-compliant installations (e.g., Fink)
if [ -d "$findbugs_home/share/findbugs" ]; then
findbugs_home="$findbugs_home/share/findbugs"
fi
# Make absolute
findbugs_home=`cd "$findbugs_home" && pwd`
fb_pathsep=':'
# Handle cygwin, courtesy of Peter D. Stout
fb_osname=`uname`
if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then
findbugs_home=`cygpath --mixed "$findbugs_home"`
fb_pathsep=';'
fi
# Handle MKS, courtesy of Kelly O'Hair
if [ "${fb_osname}" = "Windows_NT" ]; then
fb_pathsep=';'
fi
if [ ! -d "$findbugs_home" ]; then
echo "The path $findbugs_home,"
echo "which is where I think FindBugs is located,"
echo "does not seem to be a directory."
exit 1
fi
. /usr/lib/java-wrappers/java-wrappers.sh
find_jars dom4j junit4 commons-lang jaxen jdepend asm3 asm3-commons asm3-tree ant jcip jsr305 jFormatString findbugs-bcel
export CLASSPATH=$JAVA_CLASSPATH
# Choose default java binary
fb_javacmd=java
if [ ! -z "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then
if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then
fb_javacmd=`cygpath --mixed "$JAVA_HOME"`/bin/java
else
fb_javacmd="$JAVA_HOME/bin/java"
fi
fi
if [ $# -eq 0 ]; then
echo "Usage: fbwrap <main class name> <args...>"
exit 1
fi
fb_mainclass="$1"
shift
fb_javacmd=${fb_javacmd:-"java"}
fb_maxheap=${fb_maxheap:-"-Xmx768m"}
fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"}
set -f
#echo command: \
exec "$fb_javacmd" \
-classpath "$fb_appjar$fb_pathsep$CLASSPATH" \
-Dfindbugs.home="$findbugs_home"\
$fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs
# vim:ts=3
|