lib/Tools/scala
author wenzelm
Wed, 16 Nov 2011 20:56:21 +0100
changeset 45525 59561859c452
parent 45385 7c1375ba1424
child 47115 1a05adae1cc9
permissions -rwxr-xr-x
tagging is not stable under morphisms and need to be replayed dynamically (mixed_attribute);

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

[ -z "$SCALA_HOME" ] && { echo "Unknown SCALA_HOME -- Scala unavailable"; exit 2; }

[ -e "$ISABELLE_HOME/Admin/build" ] && { "$ISABELLE_HOME/Admin/build" jars || exit $?; }

CLASSPATH="$(jvmpath "$CLASSPATH")"
exec "$SCALA_HOME/bin/scala" -Dfile.encoding=UTF-8 \
  "-Djava.ext.dirs=$("$ISABELLE_HOME/src/Tools/JVM/java_ext_dirs")" "$@"