#!/bin/sh
#
# objectweb-asm5 script
# JPackage Project <http://www.jpackage.org/>

# Source functions library
_prefer_jre="true"
. /usr/share/java-utils/java-functions

# Source system prefs
if [ -f /etc/java/objectweb-asm5.conf ] ; then
  . /etc/java/objectweb-asm5.conf
fi

# Source user prefs
if [ -f $HOME/.objectweb-asm5rc ] ; then
  . $HOME/.objectweb-asm5rc
fi

# Configuration
MAIN_CLASS=org.objectweb.asm.xml.Processor
BASE_FLAGS=""
BASE_OPTIONS=""
BASE_JARS="objectweb-asm5/asm objectweb-asm5/asm-attrs objectweb-asm5/asm-util objectweb-asm5/asm-xml"

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

# Let's start
run "$@"
