aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/saxon/files/saxon.sh
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/saxon/files/saxon.sh')
-rw-r--r--textproc/saxon/files/saxon.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/textproc/saxon/files/saxon.sh b/textproc/saxon/files/saxon.sh
index 9efa0af54b7..dac9968aa16 100644
--- a/textproc/saxon/files/saxon.sh
+++ b/textproc/saxon/files/saxon.sh
@@ -2,5 +2,10 @@
#
# $FreeBSD$
-export CLASSPATH=`%%PREFIX%%/bin/classpath`
-javavm -jar %%JAVAJARDIR%%/saxon.jar $@
+SAXON_CLASSPATH=""
+for jarfile in %%SAXON_JARS%%
+do
+ SAXON_CLASSPATH="${SAXON_CLASSPATH}:${jarfile}"
+done
+
+"%%LOCALBASE%%/bin/javavm" -classpath "${SAXON_CLASSPATH}" com.icl.saxon.StyleSheet "$@"