diff options
author | mikesamuel <mikesamuel@ad8eed46-c659-4a31-e19d-951d88f54425> | 2013-02-26 03:37:22 +0000 |
---|---|---|
committer | mikesamuel <mikesamuel@ad8eed46-c659-4a31-e19d-951d88f54425> | 2013-02-26 03:37:22 +0000 |
commit | 489a0ec7301a86af8497d24748336db09ca278da (patch) | |
tree | 7b92c050f7904af3f81b3113542796424bdd1dda /tools/findbugs/bin/deprecated/bugHistory | |
parent | 269ace1e335c40c4d704196db62607f93edefeac (diff) | |
download | sanitizer-489a0ec7301a86af8497d24748336db09ca278da.tar.gz |
upgraded to most recent version of findbugs
git-svn-id: http://owasp-java-html-sanitizer.googlecode.com/svn/trunk@155 ad8eed46-c659-4a31-e19d-951d88f54425
Diffstat (limited to 'tools/findbugs/bin/deprecated/bugHistory')
-rwxr-xr-x | tools/findbugs/bin/deprecated/bugHistory | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/tools/findbugs/bin/deprecated/bugHistory b/tools/findbugs/bin/deprecated/bugHistory new file mode 100755 index 0000000..5f5599b --- /dev/null +++ b/tools/findbugs/bin/deprecated/bugHistory @@ -0,0 +1,75 @@ +#! /bin/sh + +program="$0" + +# Follow symlinks until we get to the actual file. +while [ -h "$program" ]; do + link=`ls -ld "$program"` + link=`expr "$link" : '.*-> \(.*\)'` + if [ "`expr "$link" : '/.*'`" = 0 ]; then + # Relative + dir=`dirname "$program"` + program="$dir/$link" + else + # Absolute + program="$link" + fi +done + +# Assume findbugs home directory is the parent +# of the directory containing the script (which should +# normally be "$findbugs_home/bin"). +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," + echo "does not seem to be a directory." + exit 1 +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_mainclass=edu.umd.cs.findbugs.workflow.BugHistory + +fb_javacmd=${fb_javacmd:-"java"} +fb_maxheap=${fb_maxheap:-"-Xmx768m"} +fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} +set -f +#echo command: \ +exec "$fb_javacmd" \ + -classpath "$fb_appjar$fb_pathsep$CLASSPATH" \ + -Dfindbugs.home="$findbugs_home"\ + $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs + +# vim:ts=3 |