1ed4d655e0
- Fixed xmlgraphic-fop script: * Added excalibur/avalon-framework-impl in BASE_JAR variable to avoid exception in thread "main" java.lang.NoClassDefFoundError: org/apache/avalon/framework/configuration/DefaultConfigurationBuilder Caused by: java.lang.ClassNotFoundException: org.apache.avalon.framework.configuration.DefaultConfigurationBuilder * Replaced xmlgraphics-batik/util in BASE_JAR variable to avoid ClassNotFoundException: org.apache.batik.bridge.UserAgent OBS-URL: https://build.opensuse.org/request/show/68986 OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlgraphics-fop?expand=0&rev=11
37 lines
821 B
Bash
37 lines
821 B
Bash
#!/bin/sh
|
|
#
|
|
# FOP 0.94 script
|
|
# JPackage Project <http://www.jpackage.org/>
|
|
# $Id$
|
|
|
|
# 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.cli.Main
|
|
BASE_JARS="xmlgraphics-fop xmlgraphics-commons batik-all xml-commons-jaxp-1.3-apis excalibur/avalon-framework-impl excalibur/avalon-framework-api xerces-j2 xalan-j2 xalan-j2-serializer"
|
|
|
|
# Set parameters
|
|
set_jvm
|
|
set_classpath $BASE_JARS
|
|
set_flags $BASE_FLAGS
|
|
set_options $BASE_OPTIONS $FOP_OPTS
|
|
|
|
# Let's start
|
|
run "$@"
|