lib/Tools/scalac
author wenzelm
Sun, 18 Jul 2021 12:48:31 +0200
changeset 74038 b4f57bfe82e7
parent 74017 b4e6b82fdb9e
child 76343 6a6f650cc5a2
permissions -rwxr-xr-x
more robust "isabelle build_scala" as separate tool;

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

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