This is an automated email from the ASF dual-hosted git repository.
cziegeler pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-installer-factory-feature.git
The following commit(s) were added to refs/heads/master by this push:
new e1528c6 SLING-9470 : Variables in feature model are not replaced on
installation
e1528c6 is described below
commit e1528c693f4ab4f0516dfbdedaf7c928333fb653
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Mon May 25 12:11:30 2020 +0200
SLING-9470 : Variables in feature model are not replaced on installation
---
.../sling/installer/factory/model/impl/FeatureModelInstallerPlugin.java | 2 ++
1 file changed, 2 insertions(+)
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 @@ public class FeatureModelInstallerPlugin implements
InstallTaskFactory, Resource
feature = FeatureBuilder.assemble(feature, ctx);
}
+ FeatureBuilder.resolveVariables(feature, null);
+
String featureJson = null;
try (final StringWriter sw = new StringWriter()) {
FeatureJSONWriter.write(sw, feature);