Files
spring-boot-demo/core-beans/scripts/run-all.sh
T

24 lines
702 B
Bash
Executable File

#!/usr/bin/env bash
# Regenerates every file under output/.
#
# ./scripts/run-all.sh
#
# Needs a JDK 25 and Maven 3.9. Transcripts 01-17 and 19-35 come out of the test suite, which is the point:
# the figures in the articles are assertions that fail the build if they stop being true.
# Timing-based rows (12, 16) assert coarse thresholds, not exact milliseconds.
set -euo pipefail
cd "$(dirname "$0")/.."
echo "== test suite (transcripts 01-17 and 19-35)"
mvn -B test
echo "== property defaults read from Boot's metadata (18)"
./scripts/capture-metadata.sh
echo "== early-reference and property facts read from the jars (36-37)"
./scripts/capture-cycle-facts.sh
echo
echo "output:"
ls -1 output