xsd2jibx/xsd2jibx.sh
2012-02-01 20:48:40 +04:00

32 lines
608 B
Bash
Executable file

#!/bin/sh
#
# xsd2jibx script
# JPackage Project <http://www.jpackage.org/>
# Configuration
BASE_FLAGS=""
BASE_JARS="commons-lang commons-logging jaxme/ws-jaxmejs log4j xpp3 ant jibx/run xsd2jibx"
BASE_OPTIONS=""
MAIN_CLASS=org.jibx.xsd2jibx.Generate
# Source functions library
. /usr/share/java-utils/java-functions
# Source system prefs
if [ -f /etc/xsd2jibx.conf ] ; then
. /etc/xsd2jibx.conf
fi
# Source user prefs
if [ -f $HOME/.xsd2jibxrc ] ; then
. $HOME/.xsd2jibxrc
fi
# Set parameters
set_jvm
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS
# Let's start
run "$@"