author | wenzelm |
Wed, 01 Jan 2025 22:06:27 +0100 | |
changeset 81704 | 9253dadbd4ac |
parent 79561 | 4838fcbd019b |
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 |
||
79556
0631dfc0db07
more robust check of ISABELLE_PLATFORM_FAMILY within settings environment, to support its reunification with Isabelle/Scala (see also a33a6e541cbb, f3a356c64193);
wenzelm
parents:
76343
diff
changeset
|
15 |
case "$ISABELLE_PLATFORM_FAMILY" in |
0631dfc0db07
more robust check of ISABELLE_PLATFORM_FAMILY within settings environment, to support its reunification with Isabelle/Scala (see also a33a6e541cbb, f3a356c64193);
wenzelm
parents:
76343
diff
changeset
|
16 |
windows*) |
0631dfc0db07
more robust check of ISABELLE_PLATFORM_FAMILY within settings environment, to support its reunification with Isabelle/Scala (see also a33a6e541cbb, f3a356c64193);
wenzelm
parents:
76343
diff
changeset
|
17 |
export TERM=dumb |
0631dfc0db07
more robust check of ISABELLE_PLATFORM_FAMILY within settings environment, to support its reunification with Isabelle/Scala (see also a33a6e541cbb, f3a356c64193);
wenzelm
parents:
76343
diff
changeset
|
18 |
;; |
79561 | 19 |
esac |
76175 | 20 |
|
75654 | 21 |
isabelle_scala scala $ISABELLE_SCALAC_OPTIONS "$@" |