Package gaiasky.util

Class SettingsMorph

java.lang.Object
gaiasky.util.SettingsMorph

public class SettingsMorph extends Object
Convert old settings (properties files) to new settings (YAML-based).
  • Constructor Details

    • SettingsMorph

      public SettingsMorph()
  • Method Details

    • morphSettings

      public static void morphSettings(Path propertiesFile, Path yamlFile) throws IOException
      This method loads the given properties file into a Properties, creates a Settings and fills it up with the contents of the properties file. Finally, it writes the Settings instance to disk in the YAML format to the given yamlFile.
      Parameters:
      propertiesFile - The location of the properties file.
      yamlFile - The location to save the YAML settings file.
      Throws:
      IOException