lib/Tools/java
author wenzelm
Thu, 15 Jul 2021 20:11:23 +0200
changeset 73993 3868fed3c34b
parent 73989 842fc354c031
child 74038 b4f57bfe82e7
permissions -rwxr-xr-x
more robust;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
27914
9a7f17370ffb refined scala/java wrappers via isatool;
wenzelm
parents:
diff changeset
     1
#!/usr/bin/env bash
9a7f17370ffb refined scala/java wrappers via isatool;
wenzelm
parents:
diff changeset
     2
#
9a7f17370ffb refined scala/java wrappers via isatool;
wenzelm
parents:
diff changeset
     3
# Author: Makarius
9a7f17370ffb refined scala/java wrappers via isatool;
wenzelm
parents:
diff changeset
     4
#
27916
09b3010ffaf2 removed unused usage;
wenzelm
parents: 27914
diff changeset
     5
# DESCRIPTION: invoke Java within the Isabelle environment
27914
9a7f17370ffb refined scala/java wrappers via isatool;
wenzelm
parents:
diff changeset
     6
66906
03a96b8c7c06 updated to jdk-8u152, which is for x86_64 only;
wenzelm
parents: 61294
diff changeset
     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
73993
3868fed3c34b more robust;
wenzelm
parents: 73989
diff changeset
     9
if [ -z "$ISABELLE_SETUP_CLASSPATH_SKIP" -o "$ISABELLE_SETUP_CLASSPATH_SKIP" = "false" ]
3868fed3c34b more robust;
wenzelm
parents: 73989
diff changeset
    10
then
3868fed3c34b more robust;
wenzelm
parents: 73989
diff changeset
    11
  classpath "$ISABELLE_SETUP_CLASSPATH"; unset ISABELLE_SETUP_CLASSPATH
3868fed3c34b more robust;
wenzelm
parents: 73989
diff changeset
    12
fi
3868fed3c34b more robust;
wenzelm
parents: 73989
diff changeset
    13
73989
842fc354c031 more robust classpath: skip empty entries;
wenzelm
parents: 73988
diff changeset
    14
classpath "$CLASSPATH"; unset 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
    15
58791
00916b0dd596 clarified ISABELLE_JDK_HOME vs. JAVA_HOME;
wenzelm
parents: 53584
diff changeset
    16
isabelle_java java "${JAVA_ARGS[@]}" \
61294
2d3d26e9b191 renamed jvmpath to platform_path;
wenzelm
parents: 58791
diff changeset
    17
  -classpath "$(platform_path "$ISABELLE_CLASSPATH")" "$@"