Source code file content

Revision: 53

Initial version of NetCAT Tribe Leaders coordination meeting.
» Project Revision History

» Checkout URL

web-content / trunk / processes / create-update-center.html

Size: 3380 bytes, 1 line
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    <TITLE>How to create Update Center</TITLE>
    <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <LINK href="" type="text/css" rel="Stylesheet">
        <H2>How to create Update Center</H2>
        This document contains brief steps how the staging update center can be created.
        The intention is just provide basic instructions not the complete description of 
        update center problematic.
        It is supposed that the reader has good knowledge of XML and DTD technologies.
        <H3>What is Update Center</H3>
        Update Center is a .xml file passing the NetBeans autoupdate-catalog{version}.dtd. 
        It contains at least <b>module categories</b> with links to <b>modules</b> and . 
        The .dtd files are available in NetBeans cvs in module: <i>autoupdate/libsrc/org/netbeans/updater/resources</i>. 
        You can see the latest version on the following address:
<a href=""></a>.
        <H3>Simple Update Center catalog</H3>
        The sample catalog may look like this:<br>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;

&lt;!DOCTYPE autoupdate_catalog PUBLIC "-//NetBeans//DTD Autoupdate Catalog 2.0//EN"

&lt;module_updates timestamp="53/59/15/07/04/2004"&gt;

&lt;!--Modules needed NOT to be restarted--&gt;
  &lt;module distribution="my_module.nbm" downloadsize="10" needsrestart="false" license="my-license.txt" codenamebase="org.netbeans.modules.my_module/1" release="auto"&gt;
    &lt;manifest OpenIDE-Module-Specification-Version="2.1" OpenIDE-Module-Implementation-Version="200208191132" OpenIDE-Module-IDE-Dependencies="IDE/1 &gt; 3.17" OpenIDE-Module-Name="my_module" OpenIDE-Module="org.netbeans.my_module"/&gt;
  &lt;license name="my-license.txt"&gt;&lt;![CDATA[License

        You need to pay attention to following:
        <li>write <b>distribution</b> attribute with the relative path (relatively to the catalog.xml)</li>
        <li><b>downloadsize</b> parameter must be the same as real size of .nbm (in Bytes)</li>
        <li>versions related attributes must match to those of NetBeans IDE</li>
    <h3>Add update center to NetBeans</h3>
    Let's assume we have created staging_catalog.xml located together with my_module.nbm in local directory /space/update_center.
    We will make it working in NetBeans now:
    <li>Open Tools|Options dialog.</li>
    <li>Select node IDE Configuration|System|Autoupdate Types</li>
    <li>Invoke popup menu and select item New|General Update Center</li>
    <li>Type some name e.g. "StagingUC" and Finish the wizard</li>
    <li>Select StagingUC node now and change Server URL option to "file:/space/update_center/staging_catalog.xml"</li>
    Now the StagingUC is available in Update Center Wizard and you can use it to update modules contained in the update center.

Project Features

About this Project

QA was started in November 2009, is owned by Jiří Kovalský, and has 104 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
Please Confirm