lib/Tools/scala
author wenzelm
Fri May 28 20:41:23 2010 +0200 (2010-05-28)
changeset 37174 6feaab4fc27d
parent 34297 5c0a2583f997
child 41622 ad5474a8374b
permissions -rwxr-xr-x
assume given SCALA_HOME, e.g. from component settings or external setup;
     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" "$@"