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);
}
Aggregations