sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [sling-org-apache-sling-installer-factory-feature] 23/32: SLING-9470 : Variables in feature model are not replaced on installation
Date Tue, 01 Sep 2020 16:33:14 GMT
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 <cziegeler@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);


Mime
View raw message