Class SettingsMorph
java.lang.Object
gaiasky.util.SettingsMorph
Convert old settings (properties files) to new settings (YAML-based).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidmorphSettings(Path propertiesFile, Path yamlFile) This method loads the given properties file into aProperties, creates aSettingsand fills it up with the contents of the properties file.
-
Constructor Details
-
SettingsMorph
public SettingsMorph()
-
-
Method Details
-
morphSettings
This method loads the given properties file into aProperties, creates aSettingsand fills it up with the contents of the properties file. Finally, it writes theSettingsinstance to disk in the YAML format to the givenyamlFile.- Parameters:
propertiesFile- The location of the properties file.yamlFile- The location to save the YAML settings file.- Throws:
IOException
-