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

# Source functions library
. /usr/share/java-utils/java-functions

# Source system prefs
_sysconf_file=/etc/java/objectweb-asm.conf
if [ -f $_sysconf_file ] ; then
  . $_sysconf_file
fi

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

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

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

# Let's start
jvm_run "$@"
