LGPL-2.1+
2003-2013, University of Maryland,; 2003-2008, David Hovemeyer; 2003-2015, Bill Pugh; 2003-2005, Mike Fagan; 2004-2006, Dave Brosius; 2004-2006, Peter Friese; 2004-2005, Rohan Lloyd; 2004, Garvin LeClaire; 2004, Brian Goetz; 2005, Chris Nappin; 2005, Jay Dunning; 2005-2007, Etienne Giraudy; 2007-2016, Andrey Loskutov; 2007-2008, Ben Langmead; 2008, Google Inc.; 2008, Peter Franza; 2009-2010, Andy Staudacher; 2009, Tomas Pollak; 2009-2012, Keith Lea; 2012, Nay Ayewah; 2012, Phil Crosby; 2014-2015, David Pursehouse; 2014, Kevin Lubick; 2014-2016, Tagir Valeev; 2015, Brahim Djoudi
debian/copyright
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
#! /bin/sh |
| 2 |
|
| 3 |
# |
| 4 |
# Simplified findbugs startup script. |
| 5 |
# This is an experiment. |
| 6 |
# |
| 7 |
|
| 8 |
@GET_FBHOME@ |
| 9 |
|
| 10 |
@SET_DEFAULT_JAVA@ |
| 11 |
|
| 12 |
# Default UI is GUI2 |
| 13 |
fb_launchui="2" |
| 14 |
|
| 15 |
# |
| 16 |
# Stuff we're going to pass to the JVM as JVM arguments. |
| 17 |
# |
| 18 |
jvm_debug="" |
| 19 |
jvm_maxheap="-Xmx768m" |
| 20 |
jvm_ea="" |
| 21 |
jvm_conservespace="" |
| 22 |
jvm_user_props="" |
| 23 |
|
| 24 |
# |
| 25 |
# Process command line args until we hit one we don't recognize. |
| 26 |
# |
| 27 |
finishedArgs=false |
| 28 |
while [ $# -gt 0 ] && [ "$finishedArgs" = "false" ]; do |
| 29 |
|
| 30 |
arg=$1 |
| 31 |
|
| 32 |
case $arg in |
| 33 |
-textui) |
| 34 |
shift |
| 35 |
fb_launchui="0" |
| 36 |
;; |
| 37 |
|
| 38 |
-gui) |
| 39 |
shift |
| 40 |
fb_launchui="2" |
| 41 |
;; |
| 42 |
|
| 43 |
-gui1) |
| 44 |
shift |
| 45 |
fb_launchui="1" |
| 46 |
;; |
| 47 |
|
| 48 |
-maxHeap) |
| 49 |
shift |
| 50 |
jvm_maxheap="-Xmx$1m" |
| 51 |
shift |
| 52 |
;; |
| 53 |
|
| 54 |
-ea) |
| 55 |
shift |
| 56 |
jvm_ea="-ea" |
| 57 |
;; |
| 58 |
|
| 59 |
-javahome) |
| 60 |
shift |
| 61 |
fb_javacmd="$1/bin/java" |
| 62 |
shift |
| 63 |
;; |
| 64 |
|
| 65 |
-debug) |
| 66 |
shift |
| 67 |
jvm_debug="-Dfindbugs.debug=true" |
| 68 |
;; |
| 69 |
|
| 70 |
-conserveSpace) |
| 71 |
shift |
| 72 |
jvm_conservespace="-Dfindbugs.conserveSpace=true" |
| 73 |
;; |
| 74 |
|
| 75 |
-property) |
| 76 |
shift |
| 77 |
jvm_user_props="-D$1 $jvm_user_props" |
| 78 |
shift |
| 79 |
;; |
| 80 |
|
| 81 |
-D*=*) |
| 82 |
jvm_user_props="$1 $user_props" |
| 83 |
shift |
| 84 |
;; |
| 85 |
|
| 86 |
-version) |
| 87 |
shift |
| 88 |
fb_launchui="version" |
| 89 |
;; |
| 90 |
|
| 91 |
-help) |
| 92 |
shift |
| 93 |
fb_launchui="help" |
| 94 |
;; |
| 95 |
|
| 96 |
# All arguments starting from the first unrecognized arguments |
| 97 |
# are passed on to the Java app. |
| 98 |
*) |
| 99 |
finishedArgs=true |
| 100 |
;; |
| 101 |
esac |
| 102 |
|
| 103 |
done |
| 104 |
|
| 105 |
# Extra JVM args for MacOSX. |
| 106 |
if [ $fb_osname = "Darwin" ]; then |
| 107 |
fb_jvmargs="$fb_jvmargs \ |
| 108 |
-Xdock:name=FindBugs -Xdock:icon=${findbugs_home}/lib/buggy.icns \ |
| 109 |
-Dapple.laf.useScreenMenuBar=true" |
| 110 |
fi |
| 111 |
|
| 112 |
# |
| 113 |
# Launch JVM |
| 114 |
# |
| 115 |
exec "$fb_javacmd" \ |
| 116 |
-classpath "$fb_appjar$fb_pathsep$CLASSPATH" \ |
| 117 |
-Dfindbugs.home="$findbugs_home" \ |
| 118 |
$jvm_debug $jvm_maxheap $jvm_ea $jvm_conservespace $jvm_user_props \ |
| 119 |
-Dfindbugs.launchUI=$fb_launchui \ |
| 120 |
-jar $findbugs_home/lib/findbugs.jar \ |
| 121 |
${@:+"$@"} |