author | wenzelm |
Fri, 07 Jun 2024 12:39:14 +0200 | |
changeset 80288 | bc48bc7d0801 |
parent 76343 | 6a6f650cc5a2 |
permissions | -rwxr-xr-x |
27914 | 1 |
#!/usr/bin/env bash |
2 |
# |
|
3 |
# Author: Makarius |
|
4 |
# |
|
27916 | 5 |
# DESCRIPTION: invoke Java within the Isabelle environment |
27914 | 6 |
|
66906 | 7 |
eval "declare -a JAVA_ARGS=($ISABELLE_JAVA_SYSTEM_OPTIONS)" |
53346
26c795734b3c
provide ISABELLE_JAVA_SYSTEM_OPTIONS via settings;
wenzelm
parents:
48915
diff
changeset
|
8 |
|
74038
b4f57bfe82e7
more robust "isabelle build_scala" as separate tool;
wenzelm
parents:
73993
diff
changeset
|
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:
74038
diff
changeset
|
10 |
classpath "$CLASSPATH"; export CLASSPATH="" |
53584
1f3815703436
absorb final CLASSPATH as well, such that tools might provide that by elementary means, without the "classpath" shell function (e.g. kodkodi/nitpick);
wenzelm
parents:
53576
diff
changeset
|
11 |
|
58791 | 12 |
isabelle_java java "${JAVA_ARGS[@]}" \ |
61294 | 13 |
-classpath "$(platform_path "$ISABELLE_CLASSPATH")" "$@" |