use of org.jboss.pnc.bacon.pig.impl.config.RepoGenerationStrategy.BUILD_GROUP in project bacon by project-ncl.
the class OfflineManifestGenerator method sourceBuilds.
private Collection<PncBuild> sourceBuilds() {
RepoGenerationData generationData = pigConfiguration.getFlow().getRepositoryGeneration();
RepoGenerationStrategy strategy = generationData.getStrategy();
if (!Arrays.asList(IGNORE, BUILD_GROUP).contains(strategy)) {
return builds.values();
}
List<String> excludeSourceBuilds = generationData.getExcludeSourceBuilds();
return builds.values().stream().filter(build -> !excludeSourceBuilds.contains(build.getName())).collect(Collectors.toList());
}
Aggregations