lib/Tools/scala
author bulwahn
Tue, 08 Feb 2011 08:58:24 +0100
changeset 41722 9575694d2da5
parent 41622 ad5474a8374b
child 43521 d477b92109b8
permissions -rwxr-xr-x
improving sum type and option type term constructions for correct presentation in Smallcheck

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