Class UpdatePropUpdater

java.lang.Object
games.stendhal.tools.updateprop.UpdatePropUpdater

public class UpdatePropUpdater extends Object
Updates update.properties for a new release.
Author:
hendrik
  • Constructor Details

    • UpdatePropUpdater

      public UpdatePropUpdater(String oldFile, String newFile, String oldVersion, String newVersion, String folder, List<String> files) throws Exception
      Creates a new UpdatePropUpdater.
      Parameters:
      oldFile - name of old file
      newFile - name of new file
      oldVersion - last version
      newVersion - new version
      folder - folder the .jar files are in
      files - list of files
      Throws:
      Exception
  • Method Details

    • process

      public void process() throws Exception
      Updates the update.properties file.
      Throws:
      Exception - in case of an unexpected error
    • main

      public static void main(String[] args) throws Exception
      generates a new update.properties based on an existing one
      Parameters:
      args - oldFile newFile oldVersion newVersion folder [legacy]
      Throws:
      Exception - in case of an unexpected error