Search in sources :

Example 1 with IncludedBuildFactory

use of org.gradle.initialization.IncludedBuildFactory in project gradle by gradle.

the class CompositeBuildSettingsLoader method getIncludedBuilds.

private Collection<IncludedBuild> getIncludedBuilds(StartParameter startParameter, SettingsInternal settings) {
    Map<File, IncludedBuild> includedBuildMap = Maps.newLinkedHashMap();
    includedBuildMap.putAll(settings.getIncludedBuilds());
    for (File file : startParameter.getIncludedBuilds()) {
        IncludedBuildFactory includedBuildFactory = buildServices.get(IncludedBuildFactory.class);
        if (!includedBuildMap.containsKey(file)) {
            includedBuildMap.put(file, includedBuildFactory.createBuild(file));
        }
    }
    return validateBuildNames(includedBuildMap.values(), settings);
}
Also used : IncludedBuildFactory(org.gradle.initialization.IncludedBuildFactory) File(java.io.File) IncludedBuild(org.gradle.api.initialization.IncludedBuild)

Aggregations

File (java.io.File)1 IncludedBuild (org.gradle.api.initialization.IncludedBuild)1 IncludedBuildFactory (org.gradle.initialization.IncludedBuildFactory)1