lib/Tools/scala
changeset 37174 6feaab4fc27d
parent 34297 5c0a2583f997
child 41622 ad5474a8374b
equal deleted inserted replaced
37173:ece850d911a5 37174:6feaab4fc27d
     2 #
     2 #
     3 # Author: Makarius
     3 # Author: Makarius
     4 #
     4 #
     5 # DESCRIPTION: invoke Scala within the Isabelle environment
     5 # DESCRIPTION: invoke Scala within the Isabelle environment
     6 
     6 
       
     7 [ -z "$SCALA_HOME" ] && { echo "Unknown SCALA_HOME -- Scala unavailable"; exit 2; }
       
     8 
     7 [ -e "$ISABELLE_HOME/Admin/build" ] && { "$ISABELLE_HOME/Admin/build" jars || exit $?; }
     9 [ -e "$ISABELLE_HOME/Admin/build" ] && { "$ISABELLE_HOME/Admin/build" jars || exit $?; }
     8 
    10 
     9 CLASSPATH="$(jvmpath "$CLASSPATH")"
    11 CLASSPATH="$(jvmpath "$CLASSPATH")"
    10 exec "$ISABELLE_SCALA" "$@"
    12 exec "$SCALA_HOME/bin/scala" "$@"