Skip to content

Commit

Permalink
Merge pull request #36 from apache/issues/SLING-11045
Browse files Browse the repository at this point in the history
SLING-11045 : Remove support for start-level
  • Loading branch information
cziegeler committed Jan 11, 2022
2 parents db7cb8f + 5bcbbf6 commit 32aafd8
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,6 @@ public URL provide(final ArtifactId id) {
final Feature app = FeatureBuilder.assemble(ArtifactId.fromMvnId("group:assembled:1.0.0"), builderContext, features.toArray(new Feature[0]));
loadedFeatures.put(app.getId(), app);

// TODO: this sucks
for (Artifact bundle : app.getBundles()) {
if ( bundle.getStartOrder() == 0) {
final int so = bundle.getMetadata().get("start-level") != null ? Integer.parseInt(bundle.getMetadata().get("start-level")) : 1;
bundle.setStartOrder(so);
}
}

FeatureBuilder.resolveVariables(app, config.getVariables());

return app;
Expand Down

0 comments on commit 32aafd8

Please sign in to comment.