#!/usr/bin/env bash # The two class-level demos from the preview article, re-run on the GA jars (Boot 4.2.0 / Spring Cloud 2026.0.0). set -uo pipefail cd "$(dirname "$0")/.." mvn -B -q -f probes/preview-demos/pom.xml clean package ${MVN_ARGS:-} >/dev/null || exit 1 CP='probes/preview-demos/target/classes:probes/preview-demos/target/dependency/*' clean() { grep -vE 'Picked up|DEBUG|^\s+at |^\s+\.\.\.|^org\.spring|^Caused by' | sed -E 's/^[0-9:.]+ \[main\] WARN org\.springframework\.cloud\.config\.monitor\./WARN /'; } for pair in "ForwardedDemo 50-forwarded-filters-ga" "HttpNotifierDemo 51-http-notifier-ga"; do read -r main file <<<"$pair" env -u JAVA_TOOL_OPTIONS java -cp "$CP" ankurm.sc.$main 2>&1 | clean > output/$file.txt cat output/$file.txt done