Class InstallerModule

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

public class InstallerModule extends Object
Processor of a ZIP update package
  • Field Details

  • Constructor Details

    • InstallerModule

      public InstallerModule(Setup setup, File targetDir, File zip) throws Exception
      Installs a module from a ZIP package: executes its calls, copies files and removes excess ones.
      Parameters:
      setup - application setup
      targetDir - directory to be updated
      zip - the module ZIP file
      Throws:
      Exception - on an installation error
  • Method Details

    • getModuleInf

      protected Module getModuleInf(File zip)
      Reads ENTRY_MODULE_PROPERTIES from the ZIP package.
      Parameters:
      zip - the module ZIP file
      Returns:
      module info, or null if not found
    • copyFiles

      protected boolean copyFiles(File zip, Module mi)
      Copies the package content files into the target directory.
      Parameters:
      zip - the module ZIP file
      mi - module info
      Returns:
      true on success
    • executeCalls

      protected void executeCalls(Module mi, Setup setup, File zip) throws Exception
      Executes the module's InstallationCalls.
      Parameters:
      mi - module info
      setup - application setup
      zip - the module ZIP file
      Throws:
      Exception - on a call error
    • getReport

      public InstallerModule.Report getReport()
      Installation report.
      Returns:
      report