Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7rnC7jppGGdHGESvy
23 lines
868 B
Bash
Executable File
23 lines
868 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Regenerates every file under output/. Needs JDK 25, Maven 3.9 with access to Maven Central, and a running Docker daemon
|
|
# (Testcontainers starts postgres:17-alpine for the PostgreSQL half of each transcript).
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
|
|
mkdir -p output
|
|
CP_FILE="$(mktemp)"
|
|
mvn -B -q dependency:build-classpath -Dmdep.outputFile="$CP_FILE" >/dev/null
|
|
JAR="$(tr ':' '\n' < "$CP_FILE" | grep 'hibernate-core-')"
|
|
{
|
|
echo "# javap of the shipped $(basename "$JAR")"
|
|
for c in org.hibernate.annotations.SoftDelete org.hibernate.annotations.SoftDeleteType \
|
|
org.hibernate.annotations.SQLDelete org.hibernate.annotations.SQLRestriction; do
|
|
echo; echo "\$ javap -cp $(basename "$JAR") $c"
|
|
javap -cp "$JAR" "$c" 2>&1 | grep -v '^Picked up'
|
|
done
|
|
} > output/00-javap.txt
|
|
rm -f "$CP_FILE"
|
|
|
|
mvn -B clean test
|
|
ls -1 output
|