commit | e1528c693f4ab4f0516dfbdedaf7c928333fb653 | [log] [tgz] |
---|---|---|
author | Carsten Ziegeler <cziegeler@apache.org> | Mon May 25 12:11:30 2020 +0200 |
committer | Carsten Ziegeler <cziegeler@apache.org> | Mon May 25 12:11:30 2020 +0200 |
tree | 2e8ed6bfca7dd1b285214611b9ca17caf05dc5a9 | |
parent | 76e4f2863207647bbafd3b03292b5acd09e1a738 [diff] |
SLING-9470 : Variables in feature model are not replaced on installation
diff --git a/src/main/java/org/apache/sling/installer/factory/model/impl/FeatureModelInstallerPlugin.java b/src/main/java/org/apache/sling/installer/factory/model/impl/FeatureModelInstallerPlugin.java index cc86f97..eaec3c5 100644 --- a/src/main/java/org/apache/sling/installer/factory/model/impl/FeatureModelInstallerPlugin.java +++ b/src/main/java/org/apache/sling/installer/factory/model/impl/FeatureModelInstallerPlugin.java
@@ -183,6 +183,8 @@ feature = FeatureBuilder.assemble(feature, ctx); } + FeatureBuilder.resolveVariables(feature, null); + String featureJson = null; try (final StringWriter sw = new StringWriter()) { FeatureJSONWriter.write(sw, feature);