From: Erik V. <eri...@xs...> - 2012-03-04 13:51:36
|
As it was not clear to me how to create 'profiles' from within Rails, I have done it manually. I hope you are going to provide complete migration instructions once this new configuration structure gets released!\ Erik. > -----Original Message----- > From: Stefan Frey [mailto:ste...@we...] > Sent: Sunday, March 04, 2012 8:56 AM > To: rai...@li... > Subject: [Rails-devel] Further updates to Rails configuration > > 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 > > > ---------------------------------------------------------------------------- -- > Virtualization & Cloud Management Using Capacity Planning Cloud computing > makes use of virtualization - but cloud computing also focuses on allowing > computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel |