You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2020/04/29 16:04:57 UTC
[sling-org-apache-sling-installer-factory-feature] branch master
updated: Make sure factory configurations are installed after normal
configuration
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 de89896 Make sure factory configurations are installed after normal configuration
de89896 is described below
commit de89896e2da46e5b7347f1fa6573c9d30bd0b029
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Wed Apr 29 18:04:42 2020 +0200
Make sure factory configurations are installed after normal configuration
---
.../sling/installer/factory/model/impl/InstallFeatureModelTask.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/main/java/org/apache/sling/installer/factory/model/impl/InstallFeatureModelTask.java b/src/main/java/org/apache/sling/installer/factory/model/impl/InstallFeatureModelTask.java
index 1570a59..c3519aa 100644
--- a/src/main/java/org/apache/sling/installer/factory/model/impl/InstallFeatureModelTask.java
+++ b/src/main/java/org/apache/sling/installer/factory/model/impl/InstallFeatureModelTask.java
@@ -52,6 +52,7 @@ import org.apache.sling.installer.api.tasks.ResourceState;
import org.apache.sling.installer.api.tasks.TaskResource;
import org.apache.sling.installer.api.tasks.TaskResourceGroup;
import org.osgi.framework.BundleContext;
+import org.osgi.framework.Constants;
/**
* This task installs a feature model resources.
@@ -144,6 +145,7 @@ public class InstallFeatureModelTask extends AbstractFeatureModelTask {
final String configPid = REPOINIT_FACTORY_PID.concat(feature.getId().toMvnName().replace('-', '_'));
final Dictionary<String, Object> props = new Hashtable<>();
props.put("scripts", repoInit.getText());
+ props.put(Constants.SERVICE_RANKING, 200);
result.add(new InstallableResource("/".concat(configPid).concat(".config"), null,
props, null, InstallableResource.TYPE_CONFIG, null));