From: Stefan F. <ste...@we...> - 2012-03-04 07:56:02
|
Further updates to the config mechanism: * I have added the mechanism to store config information inside of subfolders inside the rails configuration directory: Use SystemOS.get().getConfigurationFolder(String sub, boolean create) This returns a file object that points to the subfolder. If create is set to true, it is created if it does not exist before. It it does not exist or fails due to other reasons it returns null. I used that to store all user profiles in a subfolder called profiles. Erik: Please copy your "my" profile into that subfolder! * Profiles are now sorted in the selection box first on type (predefined first followed by user) and second by name. * A recent mechanism was added, that is essentially a property file that is loaded at the start of rails automatically and that gets saved as soon as the properties object gets changed. Use Config.getRecent(String key) to retrieve a value and Config.storeRecent(String key, String value) to store a value, which triggers the storage. The file that is saved is rails.recent in the top rails configuration folder. This is used to keep the profile selection persistent. However it can still be overwritten by a cli setting (-Dprofile=...) Stefan |