[DOCU-2869] Property files - order of evaluation Created: 09/Oct/23  Updated: 12/Oct/23  Resolved: 12/Oct/23

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Nils Andre Assignee: Julie Legendre
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Documentation page URL: https://docs.magnolia-cms.com/product-docs/6.2/Administration/Architecture/Configuration-management.html
Reporter Name: Nils Andre
Email: nils.andre@jobrad.org

 Description   

We have found out that the properties we specify in web.xml are evaluated in "reverse" order:

<context-param>
   <param-name>magnolia.initialization.file</param-name>
      <param-value>
         A/magnolia.properties,
         B/magnolia.properties,
         C/magnolia.properties,
         D/magnolia.properties,
         E/magnolia.properties
      </param-value>
</context-param> 

Are evaluated in the order E, D, C, B, A... (so that A/magnolia.properties can override properties in all other, "underlying" property files). 



 Comments   
Comment by Nils Andre [ 09/Oct/23 ]

We would appreciate this being documented, since we just "found that out by trying..."

Comment by Julie Legendre [ 09/Oct/23 ]

Hi Nils, thanks for the feedback. I'll make sure to add this information to the page.
Best,
Julie

Generated at Mon Feb 12 01:31:01 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.