Blame SOURCES/log4j-chainsaw.sh

d8ea4d
#!/bin/sh
d8ea4d
# 
d8ea4d
# Chainsaw (log4j) startup script
d8ea4d
#
d8ea4d
# JPackage Project <http://www.jpackage.org/>
d8ea4d
# $Id$
d8ea4d
d8ea4d
# Source functions library
d8ea4d
if [ -f /usr/share/java-utils/java-functions ] ; then 
d8ea4d
  . /usr/share/java-utils/java-functions
d8ea4d
else
d8ea4d
  echo "Can't find functions library, aborting"
d8ea4d
  exit 1
d8ea4d
fi
d8ea4d
d8ea4d
# Source system prefs
d8ea4d
if [ -r /etc/chainsaw.conf ]; then
d8ea4d
  . /etc/chainsaw.conf
d8ea4d
fi
d8ea4d
d8ea4d
# Source user prefs
d8ea4d
if [ -r "$HOME/.chainsawrc" ]; then
d8ea4d
  . "$HOME/.chainsawrc"
d8ea4d
fi
d8ea4d
d8ea4d
# Configuration
d8ea4d
MAIN_CLASS=org.apache.log4j.chainsaw.Main
d8ea4d
BASE_JARS="log4j xml-commons-apis jaxp_parser_impl"
d8ea4d
d8ea4d
# Set parameters
d8ea4d
set_jvm
d8ea4d
set_classpath $BASE_JARS
d8ea4d
set_flags $BASE_FLAGS
d8ea4d
set_options $BASE_OPTIONS
d8ea4d
d8ea4d
# Let's start
d8ea4d
run "$@"