#!/usr/bin/env bash # Where the JDKs and GraalVM live. Override with environment variables; nothing else is hard-coded. : "${JDK25:=/tmp/tools/j25/jdk-25.0.4.1+1}" : "${JDK27:=/tmp/tools/j27/jdk-27+35}" : "${GRAALVM:=$(ls -d /tmp/tools/graal/graalvm-community* 2>/dev/null | head -1)}" export JDK25 JDK27 GRAALVM ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" WORK="$ROOT/work" # generated jars, caches and logs (git-ignored) OUT="$ROOT/output" # transcripts that the article quotes (committed) export ROOT WORK OUT # Maven may need proxy/trust-store options that must not leak into the JVM runs being measured. MVN_JTO="${JAVA_TOOL_OPTIONS:-}" unset JAVA_TOOL_OPTIONS JDK_JAVA_OPTIONS _JAVA_OPTIONS mvn_run() { JAVA_TOOL_OPTIONS="$MVN_JTO" "$@"; }