load
Build an OpenRewrite Environment from the given recipe JARs and optional rewrite.yaml. Returns the activated Recipe ready for execution.
Parameters
rewriteYaml
Path to the rewrite.yaml file, or null to rely solely on classpath-scanned recipes.
fun load(recipeJars: List<Path>, activeRecipeName: String, rewriteYamlContent: String?): Recipe(source)
Overload that accepts raw YAML content as a String instead of a file path. Use this when the rewrite.yaml content is already in memory and writing it to disk would be unnecessary I/O.
Parameters
rewriteYamlContent
Raw YAML string, or null to rely solely on classpath-scanned recipes.