Files
javademos/scripts/env.sh
T

17 lines
876 B
Bash
Executable File

#!/usr/bin/env bash
# Where the JDKs live. Override on the command line: JDK27=/path/to/jdk-27 ./scripts/run-all.sh
# Every demo that compares releases needs BOTH a JDK 26 and a JDK 27 on disk.
export JDK25="${JDK25:-/opt/jdks/jdk-25.0.4.1+1}"
export JDK26="${JDK26:-/opt/jdks/jdk26}"
export JDK27="${JDK27:-/opt/jdks/jdk27}"
# Container demos use these images (same vendor for both releases, so the only variable is the JDK version).
export IMG26="${IMG26:-amazoncorretto:26}"
export IMG27="${IMG27:-amazoncorretto:27}"
# The JVM prints "Picked up JAVA_TOOL_OPTIONS" on every launch in some sandboxes; it is noise in a transcript.
unset JAVA_TOOL_OPTIONS
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
export ROOT
OUT="$ROOT/docs/output"; mkdir -p "$OUT"; export OUT
# The 21 -> 25 lane demos (lanes.sh) also need a JDK 21.
export JDK21="${JDK21:-/opt/jdks/jdk21}"