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);
     1 #!/usr/bin/env bash
     2 #
     3 # Author: Makarius
     4 #
     5 # DESCRIPTION: invoke Scala within the Isabelle environment
     6 
     7 [ -e "$ISABELLE_HOME/Admin/build" ] && { "$ISABELLE_HOME/Admin/build" jars || exit $?; }
     8 
     9 CLASSPATH="$(jvmpath "$CLASSPATH")"
    10 isabelle_scala scala -Dfile.encoding=UTF-8 \
    11   "-Djava.ext.dirs=$("$ISABELLE_HOME/src/Tools/JVM/java_ext_dirs")" "$@"