1cdf0e10cSrcweirThe extension build in this test uses an update information which is obtained 2cdf0e10cSrcweirthrough a http get request. That is the URL does not reference an update 3cdf0e10cSrcweirinformation file. Instead it invokes code on a webserver which returns the 4cdf0e10cSrcweirupdate information. The URL used in this example is: 5cdf0e10cSrcweir 6cdf0e10cSrcweirhttp://update.services.openoffice.org/ProductUpdateService/check.Update?product=extension&extensionid=org.openoffice.extensions.testarea.desktop.updateinfo&refresh=true 7cdf0e10cSrcweir 8cdf0e10cSrcweirThe updateinfo.oxt in this directory has the version 1.0 and in the sub-directory "update is the version 2 of this extension. Version 1.0 is also available here 9cdf0e10cSrcweir/extensions/www/testarea/desktop/updateinfocreation/updateinfo.oxt 10cdf0e10cSrcweirand version 2.0 here 11cdf0e10cSrcweir/extensions/www/testarea/desktop/updateinfocreation/update/updateinfo.oxt 12cdf0e10cSrcweir 13cdf0e10cSrcweirTherefore they can be accessed through 14cdf0e10cSrcweir 15cdf0e10cSrcweirhttp://extensions.openoffice.org/testarea/desktop/updateinfocreation/updateinfo.oxt 16cdf0e10cSrcweirand 17cdf0e10cSrcweirhttp://extensions.openoffice.org/testarea/desktop/updateinfocreation/update/updateinfo.oxt 18cdf0e10cSrcweir 19cdf0e10cSrcweirThe latter location (version 2.0) will also be referenced by the update information 20cdf0e10cSrcweirwhich are returned by the webserver. 21cdf0e10cSrcweir 22cdf0e10cSrcweirThe build sub-directory contains the code of the extension (version 2.0) and can 23cdf0e10cSrcweirbe build by calling dmake in this directory. The makefile uses the special macros: 24cdf0e10cSrcweir 25cdf0e10cSrcweirEXTUPDATEINFO_NAME=org.openoffice.extensions.testarea.desktop.updateinfo.update.xml 26cdf0e10cSrcweirEXTUPDATEINFO_SOURCE=description.xml 27cdf0e10cSrcweirEXTUPDATEINFO_URLS = http://extensions.openoffice.org/testarea/desktop/updateinfocreation/update/updateinfo.oxt 28cdf0e10cSrcweir 29cdf0e10cSrcweirThis causes the generation of the update information file. This file could be 30cdf0e10cSrcweirdirectly references by the URL in the <update-information> of the description.xml. 31cdf0e10cSrcweirSee also the Wiki entry at: 32*b4953498Smseidelhttps://wiki.openoffice.org/wiki/Creating_update_information_for_extensions 33cdf0e10cSrcweirThis generated update information file can then be used by the webserver, when it 34cdf0e10cSrcweirsends back the requested update information. The update information file will be 35cdf0e10cSrcweirgenerated in the misc diretory of the output directory. 36cdf0e10cSrcweir 37cdf0e10cSrcweirThe update information file needs to be copied into common.pro/pus.mxyz directory. 38cdf0e10cSrcweirThe project mwsfinish will process the files in the pus directory. 39