Hello,
I'm trying to configuring an instance of FsResourceProvider via an xml file in
my app's 'install' directory but can't get it to work.
I've tried combinations of the following. Should it work to create an instance
of FsResourceProvider this way? I'm basing it on how the logging services were
configured and worked for me.
org.apache.sling.fsprovider.internal.FsResourceProvider.xml
<node>
<name>org.apache.sling.fsprovider.internal.FsResourceProvider</name>
<primaryNodeType>sling:OsgiConfig</primaryNodeType>
<property>
<name>provider.roots</name>
<value>/content/fs/tmp</value>
<type>String</type>
</property>
<property>
<name>provider.file</name>
<value>/tmp</value>
<type>String</type>
</property>
</node>
and
org.apache.sling.fsprovider.internal.FsResourceProvider-tmp.xml
<node>
<name>org.apache.sling.fsprovider.internal.FsResourceProvider-tmp</name>
<primaryNodeType>sling:OsgiConfig</primaryNodeType>
<property>
<name>provider.roots</name>
<value>/content/fs/tmp</value>
<type>String</type>
</property>
<property>
<name>provider.file</name>
<value>/tmp</value>
<type>String</type>
</property>
</node>
Rob