Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b69H5rTewUKPyhGS8r
15 lines
609 B
Bash
Executable File
15 lines
609 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Shared setup for the scenario scripts. Source it; do not run it.
|
|
set -euo pipefail
|
|
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
MODULE="$(cd "$HERE/.." && pwd)"
|
|
OUT="$MODULE/output"
|
|
mkdir -p "$OUT"
|
|
cd "$MODULE"
|
|
# The post was tested with Temurin 25.0.5.1+2. Set JAVA_HOME to use another JDK 25.
|
|
export PATH="${JAVA_HOME:+$JAVA_HOME/bin:}$PATH"
|
|
MVN=(mvn -B -ntp)
|
|
# Strip JVM-launcher noise and wall-clock lines so reruns diff cleanly.
|
|
clean() { grep -v -E '^Picked up|^WARNING:|Finished at:|^\[INFO\] *$|^\[INFO\] Total time' || true; }
|
|
banner() { printf '\n=== %s ===\n' "$*"; }
|