lib/Tools/scala
author wenzelm
Wed Apr 25 15:13:03 2012 +0200 (2012-04-25)
changeset 47748 24550210de0b
parent 47441 2fa904af222f
child 48915 34fac6fb9b03
permissions -rwxr-xr-x
enforce our JAVA_HOME to avoid potential conflicts with other Java installations by the user;
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@34297
     7
[ -e "$ISABELLE_HOME/Admin/build" ] && { "$ISABELLE_HOME/Admin/build" jars || exit $?; }
wenzelm@34282
     8
wenzelm@27914
     9
CLASSPATH="$(jvmpath "$CLASSPATH")"
wenzelm@47115
    10
isabelle_scala scala -Dfile.encoding=UTF-8 \
wenzelm@45385
    11
  "-Djava.ext.dirs=$("$ISABELLE_HOME/src/Tools/JVM/java_ext_dirs")" "$@"