OLD | NEW |
1 #!/bin/sh | 1 #! /bin/sh |
2 | 2 |
3 program="$0" | 3 program="$0" |
4 | 4 |
5 # Follow symlinks until we get to the actual file. | 5 # Follow symlinks until we get to the actual file. |
6 while [ -h "$program" ]; do | 6 while [ -h "$program" ]; do |
7 link=`ls -ld "$program"` | 7 link=`ls -ld "$program"` |
8 link=`expr "$link" : '.*-> \(.*\)'` | 8 link=`expr "$link" : '.*-> \(.*\)'` |
9 if [ "`expr "$link" : '/.*'`" = 0 ]; then | 9 if [ "`expr "$link" : '/.*'`" = 0 ]; then |
10 # Relative | 10 # Relative |
11 dir=`dirname "$program"` | 11 dir=`dirname "$program"` |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 fb_javacmd=${fb_javacmd:-"java"} | 65 fb_javacmd=${fb_javacmd:-"java"} |
66 fb_maxheap=${fb_maxheap:-"-Xmx768m"} | 66 fb_maxheap=${fb_maxheap:-"-Xmx768m"} |
67 fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} | 67 fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} |
68 set -f | 68 set -f |
69 #echo command: \ | 69 #echo command: \ |
70 exec "$fb_javacmd" \ | 70 exec "$fb_javacmd" \ |
71 -classpath "$fb_appjar$fb_pathsep$CLASSPATH" \ | 71 -classpath "$fb_appjar$fb_pathsep$CLASSPATH" \ |
72 -Dfindbugs.home="$findbugs_home"\ | 72 -Dfindbugs.home="$findbugs_home"\ |
73 $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs | 73 $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs |
OLD | NEW |