1c7e5f8909
fixed "Class not found" errors OBS-URL: https://build.opensuse.org/request/show/140834 OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlgraphics-fop?expand=0&rev=19
33 lines
746 B
Bash
33 lines
746 B
Bash
#!/bin/bash
|
|
|
|
# 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
|
|
# Load system-wide configuration
|
|
if [ -f /etc/fop.conf ]; then
|
|
. /etc/fop.conf
|
|
fi
|
|
|
|
# Load user configuration
|
|
if [ -f "$HOME/.foprc" ]; then
|
|
. "$HOME/.foprc"
|
|
fi
|
|
|
|
# Rest of the configuration
|
|
MAIN_CLASS=org.apache.fop.tools.fontlist.FontListMain
|
|
|
|
BASE_JARS="xmlgraphics-fop xmlgraphics-commons batik-all excalibur/avalon-framework xerces-j2 xalan-j2 xalan-j2-serializer apache-commons-logging apache-commons-io"
|
|
|
|
# Set parameters
|
|
set_jvm
|
|
set_classpath $BASE_JARS
|
|
set_flags $BASE_FLAGS
|
|
set_options $BASE_OPTIONS $FOP_OPTS
|
|
|
|
# Let's start
|
|
run "$@"
|