Class InstallerModules

java.lang.Object
org.bgerp.app.dist.inst.InstallerModules

public class InstallerModules extends Object
Installer of update modules.
  • Constructor Details

    • InstallerModules

      public InstallerModules(String version)
      Constructor for a given app version.
      Parameters:
      version - app version for the update module
    • InstallerModules

      public InstallerModules()
      Default constructor, takes the version from the running app
  • Method Details

    • update

      public void update(boolean force)
      Update to the latest
      Parameters:
      force - compare remote build with locally installed.
    • getRemoteHtml

      protected org.jsoup.nodes.Document getRemoteHtml(String updateUrl) throws IOException
      Loads and parses the remote directory listing HTML.
      Parameters:
      updateUrl - directory listing URL
      Returns:
      parsed document
      Throws:
      IOException - on a network or IO error
    • getRemoteFileMap

      public Map<String, ModuleFile> getRemoteFileMap()
      Remote module files by module name.
      Returns:
      remote file map