lib/Tools/scala
author wenzelm
Thu, 10 Mar 2016 12:11:23 +0100
changeset 62587 e31bf8ed5397
parent 61294 2d3d26e9b191
child 66906 03a96b8c7c06
permissions -rwxr-xr-x
clarified messages, notably on Windows where CPU time of poly.exe is not measured;

#!/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 "$(platform_path "$ISABELLE_CLASSPATH")" "$@"