use of org.gradle.initialization.BuildLayoutParametersBuildOptions in project gradle by gradle.
the class BuildLayoutConverter method convert.
public BuildLayoutResult convert(InitialProperties systemProperties, ParsedCommandLine commandLine, @Nullable File workingDir, Consumer<BuildLayoutParameters> defaults) {
BuildLayoutParameters layoutParameters = new BuildLayoutParameters();
if (workingDir != null) {
layoutParameters.setCurrentDir(workingDir);
}
defaults.accept(layoutParameters);
Map<String, String> requestedSystemProperties = systemProperties.getRequestedSystemProperties();
new BuildLayoutParametersBuildOptions().propertiesConverter().convert(requestedSystemProperties, layoutParameters);
buildLayoutConverter.convert(commandLine, layoutParameters);
return new Result(layoutParameters);
}
Aggregations