Details
-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
3.0.2, 3.1 M1
-
None
Description
Consider the following bootstrap files:
config.modules.test.templates.babababababababababba.xml
config.modules.test.templates.mail-form.xml
config.modules.test.templates.redir.xml
config.modules.test.templates.std.xml
config.modules.test.templates.tralalalala.xml
config.modules.test.templates.utility.xml
With the current BootstrapFilesComparator, they will be ordered, bootstrapped and appear in the tree in the following order: std, redir, utility, mail-form, tralalalala and babababababababababba, which admitedly doesn't make much sense.
The reason why the files are ordered by length is an easy hack to bootstrap parent files first (ie config.modules.test.templates.xml would be bootstrapped before any of the above)
I added BootstrapFilesComparatorTest.testFilesAreOrderedByFileNameLength() to illustrate some of these issues.