lib/Tools/scala
author wenzelm
Wed Sep 30 21:32:44 2015 +0200 (2015-09-30)
changeset 61294 2d3d26e9b191
parent 59894 ca16b657901f
child 66906 03a96b8c7c06
permissions -rwxr-xr-x
renamed jvmpath to platform_path;
wenzelm@27914
     1
#!/usr/bin/env bash
wenzelm@27914
     2
#
wenzelm@27914
     3
# Author: Makarius
wenzelm@27914
     4
#
wenzelm@27916
     5
# DESCRIPTION: invoke Scala within the Isabelle environment
wenzelm@27914
     6
wenzelm@52443
     7
isabelle_admin_build jars || exit $?
wenzelm@34282
     8
wenzelm@59894
     9
declare -a JAVA_ARGS; eval "JAVA_ARGS=($ISABELLE_JAVA_SYSTEM_OPTIONS)"
wenzelm@59894
    10
declare -a SCALA_ARGS=()
wenzelm@59894
    11
for ARG in "${JAVA_ARGS[@]}"
wenzelm@59894
    12
do
wenzelm@59894
    13
  SCALA_ARGS["${#SCALA_ARGS[@]}"]="-J$ARG"
wenzelm@59894
    14
done
wenzelm@59894
    15
wenzelm@59894
    16
isabelle_scala scala "${SCALA_ARGS[@]}" \
wenzelm@61294
    17
  -classpath "$(platform_path "$ISABELLE_CLASSPATH")" "$@"