lib/Tools/scalac
changeset 44950 f60405791a1d
child 45385 7c1375ba1424
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/lib/Tools/scalac	Sat Sep 17 16:29:18 2011 +0200
     1.3 @@ -0,0 +1,13 @@
     1.4 +#!/usr/bin/env bash
     1.5 +#
     1.6 +# Author: Makarius
     1.7 +#
     1.8 +# DESCRIPTION: invoke Scala compiler within the Isabelle environment
     1.9 +
    1.10 +[ -z "$SCALA_HOME" ] && { echo "Unknown SCALA_HOME -- Scala unavailable"; exit 2; }
    1.11 +
    1.12 +[ -e "$ISABELLE_HOME/Admin/build" ] && { "$ISABELLE_HOME/Admin/build" jars || exit $?; }
    1.13 +
    1.14 +CLASSPATH="$(jvmpath "$CLASSPATH")"
    1.15 +exec "$SCALA_HOME/bin/scalac" -Dfile.encoding=UTF-8 \
    1.16 +  "-Djava.ext.dirs=$("$ISABELLE_HOME/lib/scripts/java_ext_dirs")" "$@"