mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
To give developers final control over the tuning
of their own local build, the dev-context.xml file is processed last (note: dev-context.xml isn't part of the source tree itself). Once this file said: <import resource="classpath*:alfresco/extension/*-context.xml"/> Now it ensures dev-context.xml is last via: <import resource="classpath*:alfresco/extension/*-context.xml"/> <import resource="classpath*:alfresco/extension/dev-context.xml" /> The order matters if you have a dev-context.xml that overrides fileServersConfigSource (which is the "right" way to assert a private version of: root/projects/repository/config/alfresco/extension/file-servers-custom.xml It seems weird that we have a checked-in extension like this, so I supose it's no stranger that the means to override it should also be a little curious. Anyway, now my dev-context.xml can say: <bean id="fileServersConfigSource" class="org.alfresco.config.source.UrlConfigSource"> <constructor-arg> <list> <value>classpath:alfresco/file-servers.xml</value> <!-- Get the CIFS port from a custom application context config file --> <!-- <value>classpath:alfresco/extension/file-servers-custom.xml</value> --> <value>file:/home/jcox/etc/alfresco/file-servers-custom.xml</value> </list> </constructor-arg> </bean> This allows me to provide *my* file-servers-custom.xml that won't ever get checked in by mistake, because it only uses the existing dev-context.xml mechanism. From there, I can set my CIFS ports. Whew. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4511 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -30,7 +30,18 @@
|
||||
<import resource="classpath*:alfresco/patch/*-context.xml" />
|
||||
<import resource="classpath*:alfresco/domain/*-context.xml" />
|
||||
|
||||
<!-- import of general extensions and bean overrides -->
|
||||
<import resource="classpath*:alfresco/extension/*-context.xml" />
|
||||
<!--
|
||||
Import of general extensions and bean overrides.
|
||||
|
||||
To give developers final control over the tuning
|
||||
of their own local build, the dev-context.xml file
|
||||
is processed last (note: dev-context.xml isn't
|
||||
part of the source tree itself).
|
||||
|
||||
For details, see:
|
||||
http://wiki.alfresco.com/wiki/Developer_Runtime_Configuration
|
||||
-->
|
||||
<import resource="classpath*:alfresco/extension/*-context.xml"/>
|
||||
<import resource="classpath*:alfresco/extension/dev-context.xml" />
|
||||
|
||||
</beans>
|
||||
|
Reference in New Issue
Block a user