author | wenzelm |
Tue, 18 Jul 2023 19:41:56 +0200 | |
changeset 78397 | c8df7abb8707 |
parent 76343 | 6a6f650cc5a2 |
child 79556 | 0631dfc0db07 |
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 |
|
73989 | 9 |
classpath "$ISABELLE_SETUP_CLASSPATH"; unset ISABELLE_SETUP_CLASSPATH |
76343
6a6f650cc5a2
more robust reset of CLASSPATH: unset variable means "." in certain situations, e.g. scalac;
wenzelm
parents:
76175
diff
changeset
|
10 |
classpath "$CLASSPATH"; export CLASSPATH="" |
71882 | 11 |
|
75654 | 12 |
export jvm_cp_args="$(platform_path "$ISABELLE_CLASSPATH")" |
13 |
export JAVA_OPTS="$ISABELLE_JAVA_SYSTEM_OPTIONS -J-Dscala.usejavacp=true" |
|
14 |
||
76175 | 15 |
if [ "$ISABELLE_PLATFORM_FAMILY" = "windows" ]; then |
16 |
export TERM=dumb |
|
17 |
fi |
|
18 |
||
75654 | 19 |
isabelle_scala scala $ISABELLE_SCALAC_OPTIONS "$@" |