Regenerates src/data/hero-samples.json, the per-format outputs behind the format dropdown on the home-page hero (src/pages/index.tsx).
pages/topics/03.00.JuneauMarshall.md.python3 scripts/capture-hero-samples.py python3 scripts/capture-hero-samples.py --classpath-file /tmp/hero-cp.txt
| Option | Argument | Default | Meaning |
|---|---|---|---|
--juneau-root | PATH | $JUNEAU_ROOT, then ~/git/apache/juneau | Juneau checkout used to build the classpath. |
--classpath-file | FILE | none | Use this classpath instead of running mvn dependency:build-classpath (through the Maven lock wrapper) in juneau-marshall-rdf. |
It reads the format badges from the JuneauMarshall page (the order and the 26 core + RDF split), runs each facade's of(new Person("Ada", 36)) through a small single-file Java program against the 10.0.0-SNAPSHOT jars in ~/.m2, and writes one entry per format. Binary formats are stored as a hex dump (truncated). SSE only serializes SseEvent, so its call wraps the Json output in an event.
src/data/hero-samples.json and prints wrote N samples to src/data/hero-samples.json; exit 0.~/jdk/default (Java 17) and installed SNAPSHOT jars; the Maven step runs offline (-o).FACADES entry in the script.src/pages/index.tsx (the hero format dropdown)pages/topics/03.00.JuneauMarshall.md (the badge block)