Merge the old configuration systems
Migrate existing configuration files to use the new configuration system described in bug 3948. Functionality should not be altered when the systems are merged. The three major current configuration systems are the config.xml (ecoinformatics xml), the configuration.xml (moml) and the .properties (java).
#1 Updated by Chad Berkley about 11 years ago
Have now removed the configXML system from kepler and replaced it with the new ConfigurationManager. ConfigurationManager documentation can be found here:
Next step is to figure out how to migrate the .properties files to the new format, then after that, the ptolemy configuration.xml file.
#2 Updated by Chad Berkley about 11 years ago
I have converted all but 4 of the .properties files to the new system. The remaining 4, uiDisplayText, uiSettings, uiSVGIconMappingsByClass and uiSVGMappingsByLSID are used by the ptolemy.kernel.util.StaticResources class. This poses a problem because we obviously don't want ptolemy to depend on the kepler configuration system. I've asked Christopher about possibly making a Kepler specific StaticResources class that can use our config system. These 4 properties files will remain until this is sorted out.
The only remaining configuration object to be converted is the ptolemy configuration file itself. How to do this will require more thought.
#3 Updated by Chad Berkley about 11 years ago
All .properties files have now been removed from kepler and their contents merged into the configuration manager. StaticResources has been moved from the Ptolemy tree to the Kepler tree as I could not see a real reason why it was in the ptolemy tree to begin with. It is now in util/src/org/kepler/util. The remaining file to convert is the ptolemy configuration.xml file.
#4 Updated by Chad Berkley about 11 years ago
All of the kepler specific factory properties have now been removed from the configuration.xml file. I still need to port this to wrp, but then this part should be done. The remaining items in the ptolemy configuration.xml file are pretty static and should not be a problem in the future. We can convert these later if need be. I will close this bug after finishing the wrp work.
#7 Updated by Chad Berkley about 11 years ago
All ptolemy configuration.xml files (that I know about) in kepler (except for the main one in common) have now been removed. This includes the ones in wrp and workflow-run-manager. The properties have been converted to use the configuration manager and are overridden in the modules' Intialize class.
All configuration items that I know about have now been converted to the new system. I'm closing this bug. If any issues with this pop up, please open a new bug.