Update of /cvsroot/mocklib/gwtmocklib/tools/findbugs/bin/deprecated
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/tools/findbugs/bin/deprecated
Added Files:
updateBugs bugHistory unionBugs unionResults
Log Message:
first commit of gwtmocklib module.
--- NEW FILE: updateBugs ---
#! /bin/sh
# Merge a historical bug collection and a bug collection, producing an updated
# historical bug collection
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 && /bin/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
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
fb_javacmd=$JAVA_HOME/bin/java
fi
fb_mainclass=edu.umd.cs.findbugs.workflow.Update
fb_javacmd=${fb_javacmd:-"java"}
fb_maxheap=${fb_maxheap:-"-Xmx256m"}
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
--- NEW FILE: unionResults ---
#! /bin/sh
# Deprecated
# Create the union of two results files, preserving
# annotations in both files in the result.
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 && /bin/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
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
fb_javacmd=$JAVA_HOME/bin/java
fi
fb_mainclass=edu.umd.cs.findbugs.workflow.UnionResults
fb_javacmd=${fb_javacmd:-"java"}
fb_maxheap=${fb_maxheap:-"-Xmx256m"}
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
--- NEW FILE: bugHistory ---
#! /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 && /bin/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
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
fb_javacmd=$JAVA_HOME/bin/java
fi
fb_mainclass=edu.umd.cs.findbugs.workflow.BugHistory
fb_javacmd=${fb_javacmd:-"java"}
fb_maxheap=${fb_maxheap:-"-Xmx256m"}
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
--- NEW FILE: unionBugs ---
#! /bin/sh
# Create the union of two results files, preserving
# annotations in both files in the result.
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 && /bin/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
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
fb_javacmd=$JAVA_HOME/bin/java
fi
fb_mainclass=edu.umd.cs.findbugs.UnionResults
fb_javacmd=${fb_javacmd:-"java"}
fb_maxheap=${fb_maxheap:-"-Xmx256m"}
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
|