Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JXVi2GMQ7bR5EmbUFdDj7N
13 lines
623 B
Bash
Executable File
13 lines
623 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Compiles src/broken/Redis1xStyle.java (the way the 1.x Redis store was wired) against Spring AI 2.0.1
|
|
# and keeps the compiler's own message in output/12-redis-1x-compile.txt.
|
|
set -uo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
mvn -q -B dependency:build-classpath -Dmdep.outputFile=target/classpath.txt >/dev/null 2>&1
|
|
mkdir -p target/broken
|
|
{
|
|
echo '$ javac -cp <spring-ai 2.0.1 classpath> src/broken/Redis1xStyle.java'
|
|
javac -cp "$(cat target/classpath.txt)" -d target/broken src/broken/Redis1xStyle.java 2>&1 | grep -v -E '^Picked up'
|
|
} > output/12-redis-1x-compile.txt
|
|
cat output/12-redis-1x-compile.txt
|