| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
# Include the wrappers utility script |
| 4 |
. /usr/lib/java-wrappers/java-wrappers.sh |
| 5 |
|
| 6 |
# We need sun runtime. |
| 7 |
find_java_runtime openjdk sun |
| 8 |
|
| 9 |
find_jars xercesImpl batik-all |
| 10 |
find_jars xml-apis-ext batik-transcoder |
| 11 |
# fop-transcoder.jar |
| 12 |
|
| 13 |
# We need FOP for PDF output |
| 14 |
if locate_jar fop; then |
| 15 |
find_jars fop xmlgraphics-commons |
| 16 |
fi |
| 17 |
|
| 18 |
find_jars commons-logging commons-io |
| 19 |
|
| 20 |
# We see if there is a -scriptSecurityOn in the commandline |
| 21 |
if [ "$1" != -scriptSecurityOn ]; then |
| 22 |
extra_args="-scriptSecurityOff" |
| 23 |
else |
| 24 |
shift |
| 25 |
extra_args="" |
| 26 |
fi |
| 27 |
|
| 28 |
run_java org.apache.batik.apps.rasterizer.Main $extra_args "$@" |