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