#!/bin/sh
#
# caliper script


# Source functions library
if [ -f /usr/share/java-utils/java-functions ] ; then
  . /usr/share/java-utils/java-functions
else
  echo "Can't find functions library, aborting"
  exit 1
fi

# Configuration
MAIN_CLASS="com.springsource.bundlor.commandline.Runner"
BASE_FLAGS=""
BASE_OPTIONS=""

BASE_JARS="$BASE_JARS springsource-bundlor/com.springsource.bundlor"
BASE_JARS="$BASE_JARS springsource-bundlor/com.springsource.bundlor.ant"
BASE_JARS="$BASE_JARS springsource-bundlor/com.springsource.bundlor.blint"
BASE_JARS="$BASE_JARS springsource-bundlor/com.springsource.bundlor.commandline"
BASE_JARS="$BASE_JARS commons-cli"
BASE_JARS="$BASE_JARS commons-logging"
BASE_JARS="$BASE_JARS eclipse-osgi"
BASE_JARS="$BASE_JARS objectweb-asm/asm"
BASE_JARS="$BASE_JARS objectweb-asm/asm-commons"
BASE_JARS="$BASE_JARS objectweb-asm/asm-tree"
BASE_JARS="$BASE_JARS spring2/beans"
BASE_JARS="$BASE_JARS spring2/core"
BASE_JARS="$BASE_JARS springsource-util/com.springsource.util.common"
BASE_JARS="$BASE_JARS springsource-util/com.springsource.util.math"
BASE_JARS="$BASE_JARS springsource-util/com.springsource.util.osgi"
BASE_JARS="$BASE_JARS springsource-util/com.springsource.util.parser.manifest"
BASE_JARS="$BASE_JARS spring-ws/xml"
BASE_JARS="$BASE_JARS ws-commons-XmlSchema"

# Set parameters
set_jvm
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS

# Let's start
run "$@"
