Seven runnable programs P01-P07 plus five compile-failure files, JDK 25, no docs/ folder. Output in objectmapper-jsonmapper/output/ is regenerated by scripts/run-all.sh. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b75Ao6imWN5bj7FHVw
16 lines
770 B
Bash
Executable File
16 lines
770 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Regenerates every file in output/. Run from the module directory: ./scripts/run-all.sh
|
|
# Needs JDK 25 and Maven. Timing lines in P07 are indicative and drift between runs.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
mvn -B -q compile 2>&1 | grep -vE "Picked up|WARNING" || true
|
|
mvn -B -q dependency:build-classpath -Dmdep.outputFile=target/cp.txt >/dev/null 2>&1
|
|
CP="target/classes:$(cat target/cp.txt)"
|
|
mkdir -p output
|
|
for c in P01TwoMappersSideBySide P02ImmutableMapper P03ReadWriteCookbook P04ConfigRecipes \
|
|
P05JavaTime P06Exceptions P07SharedMapperThreads; do
|
|
java -cp "$CP" "com.ankurm.objectmapper.$c" 2>&1 | grep -vE "Picked up|^WARNING" > "output/$c.txt"
|
|
echo "ran $c ($(wc -l < output/$c.txt) lines)"
|
|
done
|
|
./scripts/broken.sh
|