Custom Share-Config-Custom.xml Files in Jars
Friday, December 7, 2012 - 00:00
If you’re customising Share and modularising your customisations using multiple Jars, you will need to place your 'share-conifg-custom.xml' file in the META-INF folder not the 'alfresco/web-extension' folder, otherwise it will not be found.
A constructor argument in the 'webframework.configsource' bean in Share’s 'slingshot-application-context.xml' file defines the path:
<bean id="webframework.configsource" class="org.springframework.extensions.config.source.UrlConfigSource">
<constructor-arg>
<list>
…….
……..
<!-- Share custom config -->
<value>classpath:alfresco/web-extension/share-config-custom.xml</value>
<value>jar:*!/META-INF/share-config-custom.xml</value>
</list>
</constructor-arg>
</bean>


Add new comment