Class CascadeExporter
java.lang.Object
network.ike.workspace.cascade.CascadeExporter
Renders an assembled
ReleaseCascade into machine-readable
formats for CI consumption (IKE-Network/ike-issues#403, #420).
A CI meta-runner that generates build-chain edges from the cascade topology consumes one of these outputs, so the CI build graph derives from the assembled cascade rather than being hand-wired and drifting from it.
toJson(ReleaseCascade)— the full graph, for a meta-runner building the CI project model programmatically.toProperties(ReleaseCascade)— a flattened key/value view, for a meta-runner or shell script that only needs order + edges.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringtoJson(ReleaseCascade cascade) Renders the cascade as a JSON document: acascadearray of{groupId, artifactId, repo, url, consumes[], terminal}objects in topological order.static StringtoProperties(ReleaseCascade cascade) Renders the cascade as a.propertiesdocument: the release order, then per-repo coordinates andconsumesedges keyed by repo name.
-
Method Details
-
toJson
Renders the cascade as a JSON document: acascadearray of{groupId, artifactId, repo, url, consumes[], terminal}objects in topological order.- Parameters:
cascade- the assembled cascade- Returns:
- a JSON document string (newline-terminated)
-
toProperties
Renders the cascade as a.propertiesdocument: the release order, then per-repo coordinates andconsumesedges keyed by repo name.- Parameters:
cascade- the assembled cascade- Returns:
- a properties document string (newline-terminated)
-