You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by da...@apache.org on 2020/09/01 16:33:14 UTC

[sling-org-apache-sling-installer-factory-feature] 23/32: SLING-9470 : Variables in feature model are not replaced on installation

This is an automated email from the ASF dual-hosted git repository.

davidb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-installer-factory-feature.git

commit e1528c693f4ab4f0516dfbdedaf7c928333fb653
Author: Carsten Ziegeler <cz...@apache.org>
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);