lib/Tools/scala
author paulson <lp15@cam.ac.uk>
Sun, 12 Feb 2023 20:49:31 +0000
changeset 77234 61fba09a3456
parent 76343 6a6f650cc5a2
child 79556 0631dfc0db07
permissions -rwxr-xr-x
Simplification of proofs

#!/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"

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

isabelle_scala scala $ISABELLE_SCALAC_OPTIONS "$@"