ManifestJson

Reads and writes Manifests as JSON text, and finds the fragments on a classpath.

Functions

Link copied to clipboard

The peer contract (META-INF/wow/contract.json) of entry, a directory or a jar; null if none.

Link copied to clipboard

The fragments under META-INF/wow/manifest/ of entry, a directory or a jar of a classpath, at any depth (a nested project's is in a directory of its path), sorted by path; each is named by where it was found.

Link copied to clipboard

The model providers entry, a directory or a jar, registers for ServiceLoader: the class names its Manifest.MODEL_PROVIDERS lists, which the compiler writes beside a fragment.

Link copied to clipboard
fun pretty(tree: Any?): String

tree, a JSON tree of maps, lists and scalars, as indented JSON text.

Link copied to clipboard
fun read(file: File): Manifest
Link copied to clipboard
fun write(manifest: Manifest, file: File)