When your contextPath is i.e. /TEST/corpus-frontend, a properties file TEST/corpus-frontend.properties is searched in various locations. Having the name of the properties file depend on the contextPath is I think a good idea, if you want to run multiple instances for example.
The documentation states that the name of the properties file should be the same as the name of the war file. This is not how it works at the moment and I think it shouldn't.
So perhaps adapting documentation is the best solution here.
When your contextPath is i.e. /TEST/corpus-frontend, a properties file TEST/corpus-frontend.properties is searched in various locations. Having the name of the properties file depend on the contextPath is I think a good idea, if you want to run multiple instances for example.
The documentation states that the name of the properties file should be the same as the name of the war file. This is not how it works at the moment and I think it shouldn't.
So perhaps adapting documentation is the best solution here.