lib/Tools/scala
author Fabian Huch <huch@in.tum.de>
Tue, 28 May 2024 19:51:09 +0200
changeset 80202 03c058592c58
parent 79561 4838fcbd019b
permissions -rwxr-xr-x
add explicit Content-Length header to http response (otherwise it is missing in HEAD responses);

#!/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"; export CLASSPATH=""

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

case "$ISABELLE_PLATFORM_FAMILY" in
  windows*)
    export TERM=dumb
    ;;
esac

isabelle_scala scala $ISABELLE_SCALAC_OPTIONS "$@"