This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.installer.factory.configuration-1.0.0 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-installer-factory-configuration.git
commit df1190c1bc3c0208999405a51059b73361581848 Author: Carsten Ziegeler <[email protected]> AuthorDate: Tue Mar 29 07:16:31 2011 +0000 SLING-2031 : Use bundle location to create path for persisting new configurations git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/installer/factories/configuration@1086501 13f79535-47bb-0310-9956-ffa450edef68 --- .../installer/factories/configuration/impl/ConfigTaskCreator.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/sling/installer/factories/configuration/impl/ConfigTaskCreator.java b/src/main/java/org/apache/sling/installer/factories/configuration/impl/ConfigTaskCreator.java index 1ef43bd..3857e27 100644 --- a/src/main/java/org/apache/sling/installer/factories/configuration/impl/ConfigTaskCreator.java +++ b/src/main/java/org/apache/sling/installer/factories/configuration/impl/ConfigTaskCreator.java @@ -103,7 +103,12 @@ public class ConfigTaskCreator } } if ( persist ) { - this.changeListener.resourceAddedOrUpdated(InstallableResource.TYPE_CONFIG, id, null, dict); + Map<String, Object> attrs = null; + if ( config.getBundleLocation() != null ) { + attrs = new HashMap<String, Object>(); + attrs.put(InstallableResource.INSTALLATION_HINT, config.getBundleLocation()); + } + this.changeListener.resourceAddedOrUpdated(InstallableResource.TYPE_CONFIG, id, null, dict, attrs); } } } catch ( final Exception ignore) { -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
