lib/Tools/scala
author wenzelm
Fri Jan 01 16:40:47 2016 +0100 (2016-01-01)
changeset 62028 2ecee4679f99
parent 61294 2d3d26e9b191
child 66906 03a96b8c7c06
permissions -rwxr-xr-x
updated for release;
     1 #!/usr/bin/env bash
     2 #
     3 # Author: Makarius
     4 #
     5 # DESCRIPTION: invoke Scala within the Isabelle environment
     6 
     7 isabelle_admin_build jars || exit $?
     8 
     9 declare -a JAVA_ARGS; eval "JAVA_ARGS=($ISABELLE_JAVA_SYSTEM_OPTIONS)"
    10 declare -a SCALA_ARGS=()
    11 for ARG in "${JAVA_ARGS[@]}"
    12 do
    13   SCALA_ARGS["${#SCALA_ARGS[@]}"]="-J$ARG"
    14 done
    15 
    16 isabelle_scala scala "${SCALA_ARGS[@]}" \
    17   -classpath "$(platform_path "$ISABELLE_CLASSPATH")" "$@"