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">

<HTML>
    <HEAD>
    <TITLE>How to create Update Center</TITLE>
    <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <LINK href="http://www.netbeans.org/netbeans.css" type="text/css" rel="Stylesheet">
    </HEAD>
    <BODY>
    
        <H2>How to create Update Center</H2>
        <p>
        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.
        </p>
       
        <H3>What is Update Center</H3>
        <p>
        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="http://www.netbeans.org/dtds/autoupdate-catalog-2_3.dtd">http://www.netbeans.org/dtds/autoupdate-catalog-2_3.dtd</a>.
        </p>
 
        <H3>Simple Update Center catalog</H3>
        <p>
        The sample catalog may look like this:<br>
        <pre>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;

&lt;!DOCTYPE autoupdate_catalog PUBLIC "-//NetBeans//DTD Autoupdate Catalog 2.0//EN"
"autoupdate-catalog-2_0.dtd"&gt;

&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;/module&gt;
  
  &lt;license name="my-license.txt"&gt;&lt;![CDATA[License
  Here
]]&gt;&lt;/license&gt;
  
&lt;/module_updates&gt;

        </pre>
        You need to pay attention to following:
        <ul>
        <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>
        
        </ul>
        </p>
    <h3>Add update center to NetBeans</h3>
    <p>
    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:
    <ol>
    <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>
    </ol>
    Now the StagingUC is available in Update Center Wizard and you can use it to update modules contained in the update center.
    </p>
    </BODY>
</html>
        

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
 
 
Close
loading
Please Confirm
Close