Wiki source code of Installer and upgrader UI (2012)
Last modified by Vincent Massol on 2024/11/19 16:12
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{include document="XWiki.DesignClassSheet"/}} | ||
| 2 | |||
| 3 | = Goal = | ||
| 4 | |||
| 5 | Make as easy as possible to do necessary tasks at startup and upgrade. | ||
| 6 | |||
| 7 | The idea is to display a special install/upgrade UI when the wiki is brand new or when the backend has been upgraded to do stuff like download and install/upgrade the corresponding product xar, etc. | ||
| 8 | |||
| 9 | = Informations needed in the war = | ||
| 10 | |||
| 11 | * generic informations | ||
| 12 | ** version of the product | ||
| 13 | ** top id of the product (to display general informations about the product) | ||
| 14 | ** war id of the product (generate a default id like <product-id>-web when none is provided) | ||
| 15 | ** ui id of the product (generate a default id like <product-id>-ui when none is provided) | ||
| 16 | |||
| 17 | * custom product informations. For example in XE and XEM: | ||
| 18 | ** commons.version | ||
| 19 | ** platform.version | ||
| 20 | ** rendering.version | ||
| 21 | ** enterprise.version | ||
| 22 | ** manager.version | ||
| 23 | |||
| 24 | == Where and how to get theses informations == | ||
| 25 | |||
| 26 | A product.properties file which will replace the current version.properties made useless. | ||
| 27 | |||
| 28 | Introduce a ProductManager or a DistributionManager component and corresponding script service. | ||
| 29 | |||
| 30 | = How to know that the version of the product war is not in sync with it's corresponding installed xar = | ||
| 31 | |||
| 32 | Introduce a distribution or product table in the database to store the content of product.properties file to compare it with what's in the war and find that itcr has been changed. |