lib/Tools/scalac
author haftmann
Fri, 10 Jan 2025 21:08:18 +0100
changeset 81762 8d790d757bfb
parent 76343 6a6f650cc5a2
permissions -rwxr-xr-x
compatibility with Scala 3

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

isabelle scala_build || exit $?

classpath "$ISABELLE_SETUP_CLASSPATH"; unset ISABELLE_SETUP_CLASSPATH
classpath "$CLASSPATH"; export CLASSPATH=""

isabelle_scala scalac -Dfile.encoding=UTF-8 \
  -classpath "$(platform_path "$ISABELLE_CLASSPATH")" "$@"