10 Replies Latest reply on Jul 15, 2013 4:11 PM by Kalyan Kuram

    Application specific properties using sling:osgiConfig

    Kalyan Kuram

      Hi

      I need to install application specific properties file in /apps/<APPNAME>/config for different runmodes,

      i created a xml file with  sling:osgiconfig which looks like this

      .

      <?xml version="1.0" encoding="UTF-8"?>

      <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0"   xmlns:jcr="http://www.jcp.org/jcr/1.0"

      jcr:primaryType="sling:OsgiConfig"

      myconfig.server="{String}servername"/>

       

      and placed it under resources/SLING-CONTENT/content/apps/install/<APPNAME>/config/myconfig.xml

      and in my maven bundle plugin

      <Sling-Initial-Content>

                                  SLING-CONTENT/content/apps/install/<APPNAME>/config/myconfig.xml;path:=/apps/<APPNAME>/co nfig/;overwrite:=true;uninstall:=true

                              </Sling-Initial-Content>

       

      After i install my bundle i see

      org.apache.sling.jcr.contentloader.internal.Loader install: No initial content entries at    SLING-CONTENT/content/apps/install/<APPNAME>/config/myconfig.xml in bundle ContentPlatform.<BUNDLENAME>

       

      i do see directory create under the /apps folder wht i dont see is the myConfig.xml am i doing something wrong..?

       

      Kalyan