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 |
# Launch FindBugs from the command line. |
| 4 |
|
| 5 |
@DEFINE_ESCAPE_ARG@ |
| 6 |
|
| 7 |
@GET_FBHOME@ |
| 8 |
|
| 9 |
@SET_DEFAULT_JAVA@ |
| 10 |
|
| 11 |
|
| 12 |
fb_appjar="$findbugs_home/lib/findbugs.jar" |
| 13 |
|
| 14 |
ShowHelpAndExit() { |
| 15 |
fb_mainclass="edu.umd.cs.findbugs.ShowHelp" |
| 16 |
@WRAP_JAVA@ |
| 17 |
exit 0 |
| 18 |
} |
| 19 |
|
| 20 |
# Set defaults |
| 21 |
fb_mainclass="edu.umd.cs.findbugs.workflow.FB" |
| 22 |
user_jvmargs='' |
| 23 |
ea_arg='' |
| 24 |
debug_arg='' |
| 25 |
conservespace_arg='' |
| 26 |
workhard_arg='' |
| 27 |
user_props='' |
| 28 |
|
| 29 |
# Handle command line arguments. |
| 30 |
while [ $# -gt 0 ]; do |
| 31 |
case $1 in |
| 32 |
-textui) |
| 33 |
fb_mainclass="edu.umd.cs.findbugs.FindBugs2" |
| 34 |
;; |
| 35 |
|
| 36 |
-jvmArgs) |
| 37 |
shift |
| 38 |
user_jvmargs="$1" |
| 39 |
;; |
| 40 |
|
| 41 |
-ea) |
| 42 |
ea_arg='-ea' |
| 43 |
;; |
| 44 |
|
| 45 |
-maxHeap) |
| 46 |
shift |
| 47 |
fb_maxheap="-Xmx$1m" |
| 48 |
;; |
| 49 |
|
| 50 |
-javahome) |
| 51 |
shift |
| 52 |
fb_javacmd="$1/bin/java" |
| 53 |
;; |
| 54 |
|
| 55 |
-debug) |
| 56 |
debug_arg="-Dfindbugs.debug=true" |
| 57 |
;; |
| 58 |
|
| 59 |
-conserveSpace) |
| 60 |
conservespace_arg="-Dfindbugs.conserveSpace=true" |
| 61 |
;; |
| 62 |
|
| 63 |
-property) |
| 64 |
shift |
| 65 |
user_props="-D$1 $user_props" |
| 66 |
;; |
| 67 |
|
| 68 |
-D*=*) |
| 69 |
user_props="$1 $user_props" |
| 70 |
;; |
| 71 |
|
| 72 |
-version) |
| 73 |
fb_mainclass=edu.umd.cs.findbugs.Version |
| 74 |
fb_appargs="-release" |
| 75 |
while [ $# -gt 0 ]; do |
| 76 |
shift |
| 77 |
done |
| 78 |
@WRAP_JAVA@ |
| 79 |
exit 0 |
| 80 |
;; |
| 81 |
|
| 82 |
-help) |
| 83 |
ShowHelpAndExit |
| 84 |
;; |
| 85 |
|
| 86 |
# All unrecognized arguments will be accumulated and |
| 87 |
# passed to the application. |
| 88 |
*) |
| 89 |
fb_appargs="$fb_appargs `escape_arg "$1"`" |
| 90 |
;; |
| 91 |
esac |
| 92 |
|
| 93 |
shift |
| 94 |
done |
| 95 |
|
| 96 |
fb_jvmargs="$user_jvmargs $debug_arg $conservespace_arg $workhard_arg $user_props $ea_arg" |
| 97 |
if [ $maxheap ]; then |
| 98 |
fb_maxheap="-Xmx${maxheap}m" |
| 99 |
fi |
| 100 |
|
| 101 |
# Extra JVM args for MacOSX. |
| 102 |
if [ $fb_osname = "Darwin" ]; then |
| 103 |
fb_jvmargs="$fb_jvmargs \ |
| 104 |
-Xdock:name=FindBugs -Xdock:icon=${findbugs_home}/lib/buggy.icns \ |
| 105 |
-Dapple.laf.useScreenMenuBar=true" |
| 106 |
fi |
| 107 |
|
| 108 |
@WRAP_JAVA@ |
| 109 |
|
| 110 |
# vim:ts=3 |