Community
Participate
Working Groups
Created attachment 237545 [details] find lower case named properties files under Linux After some discussion with Markus Kuppe we recognized a little issue with loading properties files that are located in the same package as the Messages class with the new message extension under Linux. With the new message extension you are able to create a Messages class that is connected to a Messages.properties file in the same package. By default the properties files are searched and loaded using the fully qualified class name, case sensitive. Now Markus mentioned correctly that using the existing Eclipse externalization mechanism, the properties file is names in lowercase, e.g. messages.properties (IMHO properties files should be named in lower case, looks more familiar). I tested this on Windows, and there lower case named properties files are also loaded. For Markus it didn't work on Linux. I assume this is because Linux is case sensitive in the file system. I created a patch and Markus tested it successfully. The attached patch is first searching for the relative positioned properties file named in exact the same way the according class file is named (case sensitive). If it isn't found, it is searched for the base name in lower case. I also removed the try-catch at that place because the MissingResourceException is already handled in ResourceBundleHelper.getEquinoxResourceBundle()
Dirk, is this something you need us to put in for M4? I'll also mention you should use Gerrit for your patches for eclipse.platform.runtime and eclipse.platform.ui. PW
Hi Paul, since the last days I thought that I would need to contribute via Gerrit. I will search on how to do that. Yes I would like to have this fix and the fix for the camel case member variable support to be added into M4 if they are verified. I'll check asap. Greez, Dirk
Gerrit review: https://git.eclipse.org/r/#/c/19037/ PW
Released as http://git.eclipse.org/c/platform/eclipse.platform.runtime.git/commit/?id=6a246a07d7060f4f85c2c2a1db3736dc0f4adeec Thanks Dirk. PW
In 4.4.0.I20131209-2000 PW