lib/Tools/scala
author Lars Hupel <lars.hupel@mytum.de>
Wed, 22 May 2019 22:18:45 +0200
changeset 70277 ac24aaf84a36
parent 69126 e1b4b14ded58
child 71882 f92c7e2ba8da
permissions -rwxr-xr-x
Finite_Map: move lemmas from LambdaAuth AFP entry credits: Matthias Brun, Dmitriy Traytel

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

isabelle_admin_build jars || exit $?

eval "declare -a 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 "$(platform_path "$ISABELLE_CLASSPATH")" "$@"