Search in sources :

Example 1 with BuildLayoutParametersBuildOptions

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);
}
Also used : BuildLayoutParametersBuildOptions(org.gradle.initialization.BuildLayoutParametersBuildOptions) BuildLayoutParameters(org.gradle.initialization.BuildLayoutParameters) BuildLayoutResult(org.gradle.launcher.configuration.BuildLayoutResult)

Aggregations

BuildLayoutParameters (org.gradle.initialization.BuildLayoutParameters)1 BuildLayoutParametersBuildOptions (org.gradle.initialization.BuildLayoutParametersBuildOptions)1 BuildLayoutResult (org.gradle.launcher.configuration.BuildLayoutResult)1