Hello,
I have the alfresco-test.jar file that consists of overridden .properties files. How can I make sure they will have precedence over OOTB Alfresco files? Currently, to make them override OOTB files, I have to change the file name to something alphabetically greater than "alfresco" but does not seem to be a good solution. Is there any other solution?
jar files are placed under /tomcat/webapps/alfresco/WEB-INF/lib. Custom jar was initially taken from the crowdin translations.
Solved! Go to Solution.
what ".properties" file you are overriding? There is no controlled order, but per my experience the order works based on the order of bean definitions which is still hard to track.
However, good new is that, there is a way to do that using: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/beans/factory/c...PropertyOverrideConfigurer.html
or https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/beans/factory/c...BeanFactoryPostProcessor.html
These are some good tools to handle scenarios like yours.
what ".properties" file you are overriding? There is no controlled order, but per my experience the order works based on the order of bean definitions which is still hard to track.
However, good new is that, there is a way to do that using: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/beans/factory/c...PropertyOverrideConfigurer.html
or https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/beans/factory/c...BeanFactoryPostProcessor.html
These are some good tools to handle scenarios like yours.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.