author | wenzelm |
Tue, 21 Sep 2021 00:20:47 +0200 | |
changeset 74334 | ead56ad40e15 |
parent 74038 | b4f57bfe82e7 |
child 75654 | 21164fd15e3d |
permissions | -rwxr-xr-x |
27914 | 1 |
#!/usr/bin/env bash |
2 |
# |
|
3 |
# Author: Makarius |
|
4 |
# |
|
27916 | 5 |
# DESCRIPTION: invoke Scala within the Isabelle environment |
27914 | 6 |
|
74038
b4f57bfe82e7
more robust "isabelle build_scala" as separate tool;
wenzelm
parents:
74017
diff
changeset
|
7 |
isabelle scala_build || exit $? |
34282
549969a7f582
simplified build/bootstrap of Isabelle/Scala components -- avoid make;
wenzelm
parents:
29143
diff
changeset
|
8 |
|
66906 | 9 |
eval "declare -a JAVA_ARGS=($ISABELLE_JAVA_SYSTEM_OPTIONS)" |
59894 | 10 |
declare -a SCALA_ARGS=() |
11 |
for ARG in "${JAVA_ARGS[@]}" |
|
12 |
do |
|
13 |
SCALA_ARGS["${#SCALA_ARGS[@]}"]="-J$ARG" |
|
14 |
done |
|
15 |
||
73989 | 16 |
classpath "$ISABELLE_SETUP_CLASSPATH"; unset ISABELLE_SETUP_CLASSPATH |
17 |
classpath "$CLASSPATH"; unset CLASSPATH |
|
71882 | 18 |
|
59894 | 19 |
isabelle_scala scala "${SCALA_ARGS[@]}" \ |
71882 | 20 |
-classpath "$(platform_path "$ISABELLE_CLASSPATH")" \ |
21 |
-Disabelle.scala.classpath="$(platform_path "$ISABELLE_CLASSPATH")" "$@" |