You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
476 B
31 lines
476 B
4 years ago
|
#!/bin/sh
|
||
|
#
|
||
|
# mvel script
|
||
|
# gil
|
||
|
|
||
|
# Source functions library
|
||
|
. /usr/share/java-utils/java-functions
|
||
|
|
||
|
# Source system prefs
|
||
|
if [ -f /etc/mvel.conf ] ; then
|
||
|
. /etc/mvel.conf
|
||
|
fi
|
||
|
|
||
|
# Source user prefs
|
||
|
if [ -f $HOME/.mvelrc ] ; then
|
||
|
. $HOME/.mvelrc
|
||
|
fi
|
||
|
|
||
|
# Configuration
|
||
|
MAIN_CLASS=org.mvel2.sh.Main
|
||
|
BASE_JARS="mvel objectweb-asm/asm objectweb-asm/asm-util"
|
||
|
|
||
|
# Set parameters
|
||
|
set_jvm
|
||
|
set_classpath $BASE_JARS
|
||
|
set_flags $BASE_FLAGS
|
||
|
set_options $BASE_OPTIONS
|
||
|
|
||
|
# Let's start
|
||
|
run "$@"
|