diff options
| author | Greg Lewis <glewis@FreeBSD.org> | 2011-03-13 23:00:17 +0000 |
|---|---|---|
| committer | Greg Lewis <glewis@FreeBSD.org> | 2011-03-13 23:00:17 +0000 |
| commit | d30d06eb65b0e98913550bc8d37c8e5e89ed1d73 (patch) | |
| tree | 48f7ff4764f82409312fe8504270d5585b4e2092 /devel/java-findbugs/files | |
| parent | - Fix PLIST with RUBY_VER == 1.9 (diff) | |
. Add a port of FindBugs:
FindBugs looks for bugs in Java programs. It is based on the concept of bug
patterns. A bug pattern is a code idiom that is often an error. Bug patterns
arise for a variety of reasons:
* Difficult language features
* Misunderstood API methods
* Misunderstood invariants when code is modified during maintenance
* Garden variety mistakes: typos, use of the wrong boolean operator
FindBugs uses static analysis to inspect Java bytecode for occurrences of
bug patterns.
WWW: http://findbugs.sourceforge.net/
Diffstat (limited to 'devel/java-findbugs/files')
| -rw-r--r-- | devel/java-findbugs/files/patch-findbugs2 | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/devel/java-findbugs/files/patch-findbugs2 b/devel/java-findbugs/files/patch-findbugs2 new file mode 100644 index 000000000000..3f1687405cab --- /dev/null +++ b/devel/java-findbugs/files/patch-findbugs2 @@ -0,0 +1,75 @@ +--- bin/findbugs2.orig 2010-12-26 13:57:04.000000000 -0800 ++++ bin/findbugs2 2010-12-26 14:00:48.000000000 -0800 +@@ -27,27 +27,11 @@ + 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," +@@ -56,14 +40,7 @@ + fi + + # 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 ++fb_javacmd="%%LOCALBASE%%/bin/java" + + # Default UI is GUI2 + fb_launchui="2" +@@ -133,7 +110,7 @@ + jvm_user_props="-D$1 $jvm_user_props" + shift + ;; +- ++ + -D*=*) + jvm_user_props="$1 $user_props" + shift +@@ -158,17 +135,9 @@ + + done + +-# Extra JVM args for MacOSX. +-if [ $fb_osname = "Darwin" ]; then +- fb_jvmargs="$fb_jvmargs \ +- -Xdock:name=FindBugs -Xdock:icon=${findbugs_home}/lib/buggy.icns \ +- -Dapple.laf.useScreenMenuBar=true" +-fi +- + # + # Launch JVM + # +-exec "$fb_javacmd" \ +- -classpath "$fb_appjar$fb_pathsep$CLASSPATH" \ ++JAVA_VERSION="1.5+" exec "$fb_javacmd" \ + -Dfindbugs.home="$findbugs_home" \ + $jvm_debug $jvm_maxheap $jvm_ea $jvm_conservespace $jvm_user_props \ + -Dfindbugs.launchUI=$fb_launchui \ |
