lib/Tools/scala
author wenzelm
Fri, 30 Sep 2022 21:03:58 +0200
changeset 76230 fc19de122712
parent 76175 4ff3cea76201
permissions -rwxr-xr-x
clarified signature;

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

isabelle scala_build || exit $?

classpath "$ISABELLE_SETUP_CLASSPATH"; unset ISABELLE_SETUP_CLASSPATH
classpath "$CLASSPATH"; unset CLASSPATH

export jvm_cp_args="$(platform_path "$ISABELLE_CLASSPATH")"
export JAVA_OPTS="$ISABELLE_JAVA_SYSTEM_OPTIONS -J-Dscala.usejavacp=true"

if [ "$ISABELLE_PLATFORM_FAMILY" = "windows" ]; then
  export TERM=dumb
fi

isabelle_scala scala $ISABELLE_SCALAC_OPTIONS "$@"