/** * Features matching the given feature selectors including dependent features * * @param features feature selector name, name/version, name/version-range * * @return matching features */ public Set<Feature> getMatching(List<String> features) { Set<Feature> selected = new HashSet<>(); for (String feature : features) { for (String featureId : getMatchingFeatures(new FeaturePattern(feature), allFeatures)) { addFeatures(featureId, selected, true); } } return selected; }
/** * Features matching the given feature selectors including dependent features * * @param features feature selector name, name/version, name/version-range * * @return matching features */ public Set<Feature> getMatching(List<String> features) { Set<Feature> selected = new HashSet<>(); for (String feature : features) { for (String featureId : getMatchingFeatures(new FeaturePattern(feature), allFeatures)) { addFeatures(featureId, selected, true); } } return selected; }
for (String dependency : FeatureSelector.getMatchingFeatures(nameOrPattern, bootRepositories.values())) { Dependency dep = generatedDep.get(dependency); if (dep == null) {
for (String dependency : FeatureSelector.getMatchingFeatures(nameOrPattern, bootRepositories.values())) { Dependency dep = generatedDep.get(dependency); if (dep == null) {
for (String featureName : FeatureSelector.getMatchingFeatures(feature, repositories)) { MapUtils.addToMapSet(request.requirements, FeaturesService.ROOT_REGION, featureName);
for (String featureName : FeatureSelector.getMatchingFeatures(feature, repositories)) { MapUtils.addToMapSet(request.requirements, FeaturesService.ROOT_REGION, featureName);