Skip to content

Commit

Permalink
Merge pull request #202 from bosschaert/issue_201
Browse files Browse the repository at this point in the history
Allow product classifier to be overridden.
  • Loading branch information
bosschaert authored Mar 9, 2023
2 parents d9053e3 + 84c25d9 commit 3872420
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public Map<ProductVariation, List<Feature>> getProductAggregates(EnumSet<Service

final List<Feature> list = aggregates.computeIfAbsent(variation, n -> new ArrayList<>());
final Feature sdkFeature = featureProvider.provide(sdkId
.changeClassifier(variation.getSdkClassifier())
.changeClassifier(getProductClassifier(variation))
.changeType(AemAggregator.FEATUREMODEL_TYPE));
if ( sdkFeature == null ) {
throw new IOException("Unable to find SDK feature for " + sdkId.toMvnId());
Expand All @@ -73,6 +73,10 @@ public Map<ProductVariation, List<Feature>> getProductAggregates(EnumSet<Service
return aggregates;
}

protected String getProductClassifier(SdkProductVariation variation) {
return variation.getSdkClassifier();
}

@Override
public ProductVariation getVariation(String name) {
if ( name.startsWith("user-aggregated-author") )
Expand Down

0 comments on commit 3872420

Please sign in to comment.