[MAGNOLIA-6376] ClasspathResourceOrigin should warn users about duplicate resources Created: 16/Sep/15 Updated: 05/Nov/16 |
|
| Status: | Open |
| Project: | Magnolia |
| Component/s: | resource-loader |
| Affects Version/s: | 5.4.2 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Magnolia International | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| 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 |
|
In info.magnolia.i18nsystem.DefaultMessageBundlesLoader we used to warn users about duplicate resource files (this could happen e.g when using a development environment with duplicate jars of different versions, but could also simply happen when files have such a common name that they occur in multiple jars. Of course, this should happen after some filtering (no need to warn about duplicate META-INF/MANIFEST.MF files) It's currently not trivial to do within ClasspathResourceOrigin, since the Reflections library we use returns a Set<String> of resource paths. |