37 lines
848 B
Bash
37 lines
848 B
Bash
#!/bin/sh
|
|
#
|
|
# Fop script
|
|
# JPackage Project <http://www.jpackage.org/>
|
|
|
|
# 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
|
|
|
|
# Source system prefs
|
|
if [ -f /etc/fop.conf ] ; then
|
|
. /etc/fop.conf
|
|
fi
|
|
|
|
# Source user prefs
|
|
if [ -f $HOME/.foprc ] ; then
|
|
. $HOME/.foprc
|
|
fi
|
|
BASE_JARS="fop batik-all excalibur/avalon-framework xmlgraphics-commons xerces-j2 xalan-j2 xalan-j2-serializer commons-io commons-logging xml-commons-apis xml-commons-apis-ext xmlunit"
|
|
# Configuration
|
|
MAIN_CLASS=org.apache.fop.cli.Main
|
|
# Set parameters
|
|
set_jvm
|
|
set_classpath $BASE_JARS
|
|
set_flags $BASE_FLAGS
|
|
set_options $BASE_OPTIONS $FOP_OPTS
|
|
|
|
|
|
export CLASSPATH=$CLASSPATH:/usr/share/java/xml-commons-apis-ext.jar
|
|
|
|
# Let's start
|
|
run "$@"
|