How it works · Code generation (JGen)

A blueprint, a few answers, a project that builds

A blueprint is a template folder with a declared set of inputs. JGen asks for them, validates them, and turns the folder into a project shaped by the answers: tests, configuration and build files included. Bigger blueprints are assembled from smaller ones.

JGen: from a blueprint and a few answers to a buildable project You choose a blueprint and give its inputs, interactively or from a JSON file. JGen merges configuration defaults and validates every input and the blueprint's minimum Chenile version, runs the blueprint's hook to derive values, copies and renders the template folder, then lets path tags rename files, add dots and keep or drop conditional folders. A blueprint can include other blueprints, which generate their own parts. The run is recorded so the project can be regenerated later. jgeninteractive prompts configcom.mycompany · chenileVersion blueprint registryMETA-INF/blueprint.json processors.xml inputs, validatedconfig merged · sinceVersioninit hookpostInputCapture: Java or JScopy and render.mustache · .pebpath tags__x__ · _DoT_ · %%k=v%% · .filelistincluded blueprints%{{blueprint attrs}}record and Git.jgen/generation.json template folder generated project jgen -r replays the record after a blueprint update
blueprint
inputs
view
Step 1

Exchange

Payload

Validated before written

Inputs are checked against declared rules, and a blueprint newer than your Chenile version is refused, before a single file exists.

One tree, many shapes

Placeholders in names, conditional folders and file lists let one template folder produce exactly the variant the inputs describe.

Built from blueprints

A folder named %{{blueprint}} runs another blueprint in its place. The process deployment blueprint is mostly two minimonoliths and a set of workers, composed.