lib/Tools/scala
author wenzelm
Mon Nov 07 14:59:58 2011 +0100 (2011-11-07)
changeset 45385 7c1375ba1424
parent 43521 d477b92109b8
child 47115 1a05adae1cc9
permissions -rwxr-xr-x
offline build of java_ext_dirs.jar, to avoid runtime dependency on javac/jar executables;
wenzelm@27914
     1
#!/usr/bin/env bash
wenzelm@27914
     2
#
wenzelm@27914
     3
# Author: Makarius
wenzelm@27914
     4
#
wenzelm@27916
     5
# DESCRIPTION: invoke Scala within the Isabelle environment
wenzelm@27914
     6
wenzelm@37174
     7
[ -z "$SCALA_HOME" ] && { echo "Unknown SCALA_HOME -- Scala unavailable"; exit 2; }
wenzelm@37174
     8
wenzelm@34297
     9
[ -e "$ISABELLE_HOME/Admin/build" ] && { "$ISABELLE_HOME/Admin/build" jars || exit $?; }
wenzelm@34282
    10
wenzelm@27914
    11
CLASSPATH="$(jvmpath "$CLASSPATH")"
wenzelm@43521
    12
exec "$SCALA_HOME/bin/scala" -Dfile.encoding=UTF-8 \
wenzelm@45385
    13
  "-Djava.ext.dirs=$("$ISABELLE_HOME/src/Tools/JVM/java_ext_dirs")" "$@"