lib/Tools/scala
author wenzelm
Mon Mar 26 16:25:08 2012 +0200 (2012-03-26)
changeset 47115 1a05adae1cc9
parent 45385 7c1375ba1424
child 47441 2fa904af222f
permissions -rwxr-xr-x
more robust command invocation via ISABELLE_JDK_HOME or SCALA_HOME (NB: bash exec requires genuine executable, not function);
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")" "$@"