lib/Tools/scala
author blanchet
Fri, 28 Aug 2015 16:48:05 +0200
changeset 61043 0810068379d8
parent 59894 ca16b657901f
child 61294 2d3d26e9b191
permissions -rwxr-xr-x
eliminated obsolete environment variable

#!/usr/bin/env bash
#
# Author: Makarius
#
# DESCRIPTION: invoke Scala within the Isabelle environment

isabelle_admin_build jars || exit $?

declare -a JAVA_ARGS; eval "JAVA_ARGS=($ISABELLE_JAVA_SYSTEM_OPTIONS)"
declare -a SCALA_ARGS=()
for ARG in "${JAVA_ARGS[@]}"
do
  SCALA_ARGS["${#SCALA_ARGS[@]}"]="-J$ARG"
done

isabelle_scala scala "${SCALA_ARGS[@]}" \
  -classpath "$(jvmpath "$ISABELLE_CLASSPATH")" "$@"