freebsd-ports/textproc/saxon-devel/files/saxon.sh.in

21 lines
399 B
Bash
Raw Normal View History

#!/bin/sh
#
# $FreeBSD$
IAM="`basename "$0"`"
if [ "${IAM}" = "saxon-xquery" ]
then
LAUNCHER_CLASS="net.sf.saxon.Query"
else
LAUNCHER_CLASS="net.sf.saxon.Transform"
fi
SAXON_CLASSPATH=""
for jarfile in %%SAXON_JARS%%
do
SAXON_CLASSPATH="${SAXON_CLASSPATH}:${jarfile}"
done
JAVA_VERSION="%%JAVA_VERSION%%" exec "%%LOCALBASE%%/bin/java" -classpath "${SAXON_CLASSPATH}" "${LAUNCHER_CLASS}" "$@"