load

fun load(configFile: Path?, logger: RunnerLogger): ToolConfig(source)

Load a ToolConfig from configFile if it exists, or return a default instance.

The YAML text is pre-processed to expand ${VAR_NAME} placeholders before parsing. Unknown YAML keys are silently ignored.

Parameters

configFile

Path to rewriterunner.yml. May be null or point to a non-existent file; in either case a default ToolConfig is returned.

logger

Optional logger for warnings during config loading.