Guide
Write a preparation step
Use the generic extension point to derive a launch command.
Choose the output type
BuildStep<T> describes the result of preparation. A step can return a command line, a manifest, or another build plan.
BuildStep<List<String>> launch = p -> List.of("java", p.mainClass());Apply the step
Pass a validated BuildPlan to the step. The result contains the command and its argument as separate entries.
var command = launch.prepare(BuildPlan.defaults("example.Main"));