Class InstallerModule
java.lang.Object
org.bgerp.app.dist.inst.InstallerModule
Processor of a ZIP update package
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classReport of replaced and removed files during an installation. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstallerModule(Setup setup, File targetDir, File zip) Installs a module from a ZIP package: executes its calls, copies files and removes excess ones. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanCopies the packagecontentfiles into the target directory.protected voidexecuteCalls(Module mi, Setup setup, File zip) Executes the module'sInstallationCalls.protected ModulegetModuleInf(File zip) ReadsENTRY_MODULE_PROPERTIESfrom the ZIP package.Installation report.
-
Field Details
-
MESSAGE_ERROR
-
MESSAGE_OK
-
ENTRY_MODULE_PROPERTIES
ZIP entry name of the module descriptor- See Also:
-
-
Constructor Details
-
InstallerModule
Installs a module from a ZIP package: executes its calls, copies files and removes excess ones.- Parameters:
setup- application setuptargetDir- directory to be updatedzip- the module ZIP file- Throws:
Exception- on an installation error
-
-
Method Details
-
getModuleInf
ReadsENTRY_MODULE_PROPERTIESfrom the ZIP package.- Parameters:
zip- the module ZIP file- Returns:
- module info, or
nullif not found
-
copyFiles
-
executeCalls
-
getReport
-