Class ConfigMigrator

java.lang.Object
tfagaming.projects.minecraft.homestead.resources.ConfigMigrator

public final class ConfigMigrator extends Object
Migrate any configuration settings from the ancient config.yml (v5.0.2.2) to the new resource files (v5.1.0.0).

This is a temporary solution that will be removed in the future.
  • Constructor Details

    • ConfigMigrator

      public ConfigMigrator(File configFile, List<File> targetFiles)
  • Method Details

    • migrate

      public boolean migrate() throws IOException
      Runs the migration, returns true when a change has happened.
      Throws:
      IOException - If saving any modified file fails.