OLD | NEW |
1 #!/bin/sh | 1 #! /bin/sh |
2 | 2 |
3 # A convenient way to call the main() method of a class | 3 # A convenient way to call the main() method of a class |
4 # in findbugs.jar. | 4 # in findbugs.jar. |
5 | 5 |
6 program="$0" | 6 program="$0" |
7 | 7 |
8 # Follow symlinks until we get to the actual file. | 8 # Follow symlinks until we get to the actual file. |
9 while [ -h "$program" ]; do | 9 while [ -h "$program" ]; do |
10 link=`ls -ld "$program"` | 10 link=`ls -ld "$program"` |
11 link=`expr "$link" : '.*-> \(.*\)'` | 11 link=`expr "$link" : '.*-> \(.*\)'` |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 fb_maxheap=${fb_maxheap:-"-Xmx768m"} | 75 fb_maxheap=${fb_maxheap:-"-Xmx768m"} |
76 fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} | 76 fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} |
77 set -f | 77 set -f |
78 #echo command: \ | 78 #echo command: \ |
79 exec "$fb_javacmd" \ | 79 exec "$fb_javacmd" \ |
80 -classpath "$fb_appjar$fb_pathsep$CLASSPATH" \ | 80 -classpath "$fb_appjar$fb_pathsep$CLASSPATH" \ |
81 -Dfindbugs.home="$findbugs_home"\ | 81 -Dfindbugs.home="$findbugs_home"\ |
82 $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs | 82 $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs |
83 | 83 |
84 # vim:ts=3 | 84 # vim:ts=3 |
OLD | NEW |