[MAGNOLIA-6121] Expose system exclusions for configuration files Created: 11/Mar/15  Updated: 15/Mar/21  Resolved: 15/Mar/21

Status: Closed
Project: Magnolia
Component/s: configuration
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Mikaël Geljić Assignee: Unassigned
Resolution: Outdated Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MAGNOLIA-6075 Follow java-free module conventions b... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 Description   

System directories are currently excluded from loading of config files and registration of the watch service, via a constant array of string patterns in YamlConfigurationSourceBuilder.

YamlConfigurationSourceBuilder.java
private static final List<String> SYSTEM_DIRECTORIES = Arrays.asList("META-INF", "WEB-INF", "cache", "docroot", "logs", "repositories*", "tmp");

Besides META-INF and WEB-INF, the others are highly installation dependent.
Therefore we should rather expose them through some mechanism (e.g. magnolia property).


Generated at Mon Feb 12 04:11:30 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.