Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b3fvyFpxThdRxcozLx
17 lines
743 B
Bash
Executable File
17 lines
743 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Regenerates every file in output/. 07 (threads) drifts between runs: the counts are indicative.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
mvn -q -B compile
|
|
mkdir -p output
|
|
run() { java -Dstdout.encoding=UTF-8 -cp target/classes "com.ankurm.datetimeformatter.$1" 2>&1 | grep -v '^Picked up JAVA_TOOL_OPTIONS' > "output/$2.txt"; }
|
|
run PatternLettersDemo 01-pattern-letters
|
|
run WeekYearBugDemo 02-week-year-bug
|
|
run LocaleDemo 03-locales
|
|
run ParsingDemo 04-parsing
|
|
run IsoFormatsDemo 05-iso-formats
|
|
run ErrorsDemo 06-errors
|
|
run ThreadSafetyDemo 07-thread-safety
|
|
mvn -B test 2>&1 | grep -E 'Tests run|BUILD|ERROR|FAIL' | grep -v 'Picked up' > output/08-tests.txt
|
|
echo "regenerated:"; ls output
|