lib/Tools/scala
author wenzelm
Thu Jun 23 16:10:22 2011 +0200 (2011-06-23)
changeset 43521 d477b92109b8
parent 41622 ad5474a8374b
child 45385 7c1375ba1424
permissions -rwxr-xr-x
provide Isabelle/Scala environment as Java extension, instead of user classpath
(which is subject to adhoc changes);
     1 #!/usr/bin/env bash
     2 #
     3 # Author: Makarius
     4 #
     5 # DESCRIPTION: invoke Scala within the Isabelle environment
     6 
     7 [ -z "$SCALA_HOME" ] && { echo "Unknown SCALA_HOME -- Scala unavailable"; exit 2; }
     8 
     9 [ -e "$ISABELLE_HOME/Admin/build" ] && { "$ISABELLE_HOME/Admin/build" jars || exit $?; }
    10 
    11 CLASSPATH="$(jvmpath "$CLASSPATH")"
    12 exec "$SCALA_HOME/bin/scala" -Dfile.encoding=UTF-8 \
    13   "-Djava.ext.dirs=$("$ISABELLE_HOME/lib/scripts/java_ext_dirs")" "$@"