platform-update-home/doc/eclipse_update_packaging.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (view) (download) (as text)

1 : droberts 1.6 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 : vlad 1.1 <html>
3 :     <head>
4 : celek 1.11
5 : celek 1.9 <meta http-equiv="Content-Type"
6 :     content="text/html; charset=iso-8859-1">
7 : celek 1.11
8 : celek 1.7 <meta name="Author" content="Lab User">
9 : celek 1.11
10 : celek 1.7 <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
11 :     <title>Eclipse Platform: Installation and Update</title>
12 : vlad 1.1 </head>
13 : celek 1.7 <body>
14 : celek 1.11
15 : celek 1.7 <h1> Eclipse Platform<br>
16 : celek 1.11 Update Packaging Conventions</h1>
17 :     <font size="-1">Revision Date: 12/09/2002 8:56AM - Version: 2.0.15</font><br>
18 :     <a href="../../../../../hglegal.htm"><img src="ngibmcpy.gif"
19 : celek 1.10 border="0" height="12" width="195">
20 : celek 1.11 </a>
21 : celek 1.9 <p><b>Change History:</b> </p>
22 : celek 1.11
23 : celek 1.7 <ul>
24 : celek 1.11 <li><small>2.0.16</small> <small><br>
25 :     </small>
26 :     <ul>
27 :     <li><small>added &lt;site&gt;&lt;feature&gt; os,arch,nl,ws support
28 :     "*"</small></li>
29 :     </ul>
30 :     </li>
31 :     <li><small>2.0.15</small>
32 : celek 1.10 <ul>
33 : celek 1.11 <li><small>added &lt;site&gt;&lt;feature&gt; os,arch,nl,ws,patch tag</small></li>
34 : celek 1.10 </ul>
35 : celek 1.11 </li>
36 :     <li><small>2.0.14<br>
37 :     </small>
38 : celek 1.10 <ul>
39 : celek 1.11 <li><small>added &lt;site&gt;&lt;feature&gt; label tag</small><br>
40 :     </li>
41 :    
42 : celek 1.10 </ul>
43 : celek 1.11 </li>
44 :     <li><font size="-1">2.0.13</font> <small><br>
45 :     </small>
46 : celek 1.9 <ul>
47 : celek 1.11 <li><small>added &lt;includes name,optional,match,search_location</small>
48 : celek 1.10 &gt;</li>
49 : celek 1.11 <li><small>added &lt;import feature,patch&gt;</small></li>
50 :    
51 : celek 1.9 </ul>
52 : celek 1.11 </li>
53 :    
54 : celek 1.9 </ul>
55 : celek 1.11
56 : celek 1.9 <ul>
57 : celek 1.11 <li><font size="-1">2.0.12</font></li>
58 :    
59 :     <ul>
60 :     <li> <font size="-1">added reference to the <a
61 :     href="http://www.eclipse.org/legal/updatemanager.html"> Eclipse.org Update
62 :     Manager Agreement</a> </font></li>
63 :    
64 :     </ul>
65 :     <li> <font size="-1">2.0.11</font></li>
66 :    
67 :     <ul>
68 :     <li> <font size="-1">&lt;feature&gt; &lt;license&gt; is required</font></li>
69 :    
70 :     </ul>
71 :     <li> <font size="-1">2.0.10</font></li>
72 :    
73 :     <ul>
74 :     <li> <font size="-1">&lt;feature colocation-affinity=""&gt;</font></li>
75 :    
76 :     </ul>
77 :     <li> <font size="-1">2.0.9</font></li>
78 :    
79 : celek 1.7 <ul>
80 : celek 1.11 <li> <font size="-1">&lt;site&gt; &lt;feature&gt; changes - additional
81 :     markup to optionally expose feature identification information to speed
82 :     up searches</font></li>
83 :     <li> <font size="-1">removed obsolete text</font></li>
84 :     <li> <font size="-1">web-triggered update not in 2.0</font></li>
85 :     <li> <font size="-1">no assist in 2.0 for license/ "key file" handling
86 : celek 1.10 (individual application/ plugin responsibility)</font></li>
87 : celek 1.11
88 : celek 1.7 </ul>
89 : celek 1.11 <li> <font size="-1">2.0.8</font></li>
90 :    
91 : celek 1.7 <ul>
92 : celek 1.11 <li> <font size="-1">&lt;feature&gt; &lt;includes&gt;</font></li>
93 :    
94 : celek 1.7 </ul>
95 : celek 1.11 <li> <font size="-1">2.0.7</font></li>
96 :    
97 : celek 1.7 <ul>
98 : celek 1.11 <li> <font size="-1">support explicit xml markup for primary features</font></li>
99 :    
100 : celek 1.7 </ul>
101 : celek 1.11 <li> <font size="-1">2.0.6</font></li>
102 :    
103 : celek 1.7 <ul>
104 : celek 1.11 <li> <font size="-1">install handler markup changes</font></li>
105 :    
106 : celek 1.7 </ul>
107 : celek 1.11 <li> <font size="-1">2.0.5</font></li>
108 :    
109 : celek 1.7 <ul>
110 : celek 1.11 <li> <font size="-1">updates to security section</font></li>
111 :    
112 : celek 1.7 </ul>
113 : celek 1.11 <li> <font size="-1">2.0.4</font></li>
114 :    
115 : celek 1.7 <ul>
116 : celek 1.11 <li> <font size="-1">general text cleanup</font></li>
117 :     <li> <font size="-1">&lt;feature&gt;&lt;group&gt; support removed (will
118 : celek 1.10 not be in Eclipse 2.0)</font></li>
119 : celek 1.11 <li> <font size="-1">arch= support added to &lt;feature&gt; and &lt;feature&gt;&lt;plugin&gt;</font></li>
120 :     <li> <font size="-1">os=/ arch=/ ws=/ nl= added to &lt;fetaure&gt;&lt;data&gt;</font></li>
121 :     <li> <font size="-1">&lt;site url=""&gt; new semantics</font></li>
122 :     <li> <font size="-1">corrected errors in native installer link support</font></li>
123 :     <li> <font size="-1">defined callback query strings for browser-triggered
124 : celek 1.10 processing</font></li>
125 : celek 1.11
126 : celek 1.10 </ul>
127 : celek 1.11
128 : celek 1.7 </ul>
129 : celek 1.11
130 : celek 1.7 <h3> <font size="+2">Table of Contents</font></h3>
131 : celek 1.11 <a href="#Introduction">Introduction</a> <br>
132 :     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="#Changes_from_R1.0">Changes
133 :     from 1.0</a> <br>
134 :     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="#Concepts">Concepts</a>
135 :     <br>
136 :     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="#Framework">Framework</a>
137 : celek 1.10 <br>
138 : celek 1.11 <a href="#Packaging_Conventions">Packaging Conventions</a> <br>
139 :     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="#Feature_Archive">Feature
140 :     Archive</a> <br>
141 :     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="#Plug-In_Archive">Plug-In
142 :     Archive</a> <br>
143 :     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="#Packaging_NL">Packaging
144 : celek 1.10 NL</a> <br>
145 : celek 1.11 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
146 :     href="#Translated_Feature_Information"> Translated Feature Information</a>
147 : celek 1.10 <br>
148 : celek 1.11 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
149 :     href="#Translated_Plug-In_Information"> Translated Plug-In Information</a>
150 : celek 1.10 <br>
151 : celek 1.11 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
152 :     href="#Packaging_Target-Specific_Support"> Packaging Target-Specific Support</a>
153 : celek 1.10 <br>
154 : celek 1.11 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a
155 :     href="#Packaging_Attribution_Information"> Packaging Attribution Information</a>
156 : celek 1.10 <br>
157 : celek 1.11 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a
158 :     href="#Packaging_Attribution_Information"> Packaging Non-Plug-In Files</a>
159 : celek 1.10 <br>
160 : celek 1.11 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a
161 :     href="#Packaging_Attribution_Information"> Custom Install Handling</a>
162 :     <br>
163 :     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
164 :     href="#Security_Considerations">Security Considerations</a> <br>
165 :     <a href="#Update_Server">Update Server</a> <br>
166 :     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="#Site_Map">Site Map</a>
167 : celek 1.9 <br>
168 : celek 1.11 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="#Default_Site_Layout">Default
169 :     Site Layout</a> <br>
170 :     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="#Controlling_Access">Controlling
171 :     Access</a> <br>
172 :     <a href="#Eclipse_Install">Eclipse Install</a> <br>
173 :     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
174 :     href="#Default_Install_Layout">Default Install Layout</a> <br>
175 :     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="#Unmanaged_Plugins">"Unmanaged"
176 :     Plug-Ins</a> <br>
177 :     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
178 :     href="#Using_Native_Platform_Installers"> Using Native Platform Installers</a>
179 :    
180 : celek 1.9 <h2> <a name="Introduction"></a> Introduction</h2>
181 : celek 1.11 This document outlines the support for managing the delivery of function
182 :     within the Eclipse platform. Also refer to the "<a
183 :     href="http://www.eclipse.org/legal/updatemanager.html"> Eclipse.org Update
184 :     Manager Agreement</a> " for additional legal information governing the use
185 :     of the Eclipse update manager function.
186 : celek 1.9 <h3> <a name="Changes_from_R1.0"></a> Changes from R1.0</h3>
187 : celek 1.11 This section describes the major design changes from the R1.0 Installation
188 :     and Update support and supplies rationale for each design change.
189 : celek 1.7 <ul>
190 : celek 1.11 <li> <b>extendable framework</b></li>
191 :     <br>
192 :     In R2.0 Eclipse defines an extendable framework for installation and update,
193 :     allowing the support for alternate packaging and site management schemes.
194 :     R2.0 supplies a default concrete implementation of this framework. <li>
195 :     <b> feature support</b></li>
196 :     <br>
197 :     In R2.0 the concept of a <i>component</i> and <i>configuration</i> is
198 :     merged into <i>feature</i>. Features define the packaging structure for
199 :     a group of related plug-ins, plug-in fragments, and optionally non-plug-in
200 :     files. Features are treated purely as an installation and packaging construct.
201 :     They do not play a role during Eclipse plug-in execution. Features do not
202 :     nest. They are simply an inclusive "manifest" of the plug-ins, fragments
203 :     and other files that make up that feature. If features are logically made
204 :     up of plug-ins from "sub-features", the top-level feature "manifest" must
205 :     be fully resolved at packaging time. <li> <b>default feature archive format</b></li>
206 :     <br>
207 :     R1.0 components were packaged as a single Java .jar containing the component
208 :     manifest as well as the actual plug-in files. The problem with this approach
209 :     is lack of granularity at download time. In R2.0, the feature archive consists
210 :     of multiple separate .jars - one .jar per plug-in and fragment, plus one
211 :     .jar for the actual feature information. The Installation and Update support
212 :     selectively downloads only those jars required for the installation. <li>
213 : celek 1.10 <b>site map</b></li>
214 : celek 1.11 <br>
215 :     Default Eclipse update server must contain a <i>site map</i> file (site.xml).
216 :     This is an evolution of the R1.0 install.index support. The rationale for
217 :     using a structured site defined by the map rather than a "free form" web
218 :     site, is the ability to present a consistent installation experience for
219 :     the user. Also, this provides the necessary structure for discovery of available
220 :     updates. Additional support for "free form" browsing may be considered in
221 :     future work. <li> <b>using native install/ uninstall</b></li>
222 :     <br>
223 :     The primary mechanism for installing and updating Eclipse features is
224 :     the built-in installation and update support. Some products may instead
225 :     choose to use native installer technology (eg. MSI, RPM, etc) to deliver
226 :     Eclipse features. However, native installers do not implement the required
227 :     support for understanding the Eclipse installation structure. In particular,
228 :     the native uninstallers will, by default, remove plug-in files that were
229 :     installed using the native installer without regard to these plug-ins being
230 :     needed by other features. As a result, features installed using native installers
231 :     must be written into private product-specific installation location and not
232 :     the shared Eclipse installation location. The shared Eclipse is made aware
233 :     of the produce-specific location via an installed "link file". <li> <b>custom
234 : celek 1.10 install handling</b></li>
235 : celek 1.11 <br>
236 :     In many cases the standard installation handling supplied by Eclipse is
237 :     not be sufficient to handle various custom requirements. To accommodate
238 :     this, R2.0 Eclipse supports custom install handlers packaged as part of
239 :     the feature and executed during the feature installation. <li> <b>path naming
240 :     conventions</b></li>
241 :     <br>
242 :     R1.0 mandated the use of the various identifiers and versions inside the
243 :     packaged archives (eg. directory path names for plug-ins). This approach
244 :     has proven to be ackward and error prone. In 2.0, the packaging requirements
245 :     no longer mandate that path names of packaged files precisely reflect the
246 :     contained identifiers and versions. The properly identified install subdirectories
247 :     are created by the Eclipse support during the installation and update process
248 :     based on the archive content (rather than explicit jar path structure set
249 :     up at packaging time)
250 : celek 1.7 </ul>
251 : celek 1.11
252 : celek 1.9 <h3> <a name="Concepts"></a> Concepts</h3>
253 : celek 1.11 <b>Plug-in</b> <br>
254 :     Eclipse developers build plug-ins. Plug-ins are the base units of execution
255 :     recognized by the Eclipse runtime environment. In general, plug-ins are
256 :     not exposed to users that select function during installation or update.
257 :     The reason is that plug-in boundaries are established by developers for development
258 :     reasons (like function reuse) and present the wrong level of granularity
259 :     in terms of what the user sees as the unit of function.
260 :     <p>While plug-ins are being developed (ie. are frequently being changed),
261 :     their internal file structure will reflect what is convenient to the developer.
262 :     This will generally depend on the particular development tool being used.
263 :     Typically, however, the developer will likely setup the plug-in to execute
264 :     from a directory tree containing exposed .class files, rather than executing
265 :     from a .jar (requires an extra step to create the .jar and we all know
266 :     developers hate extra steps). Also, at this stage the developer does not
267 :     pay particular attention to plug-in versioning information, because the
268 :     plug-in is continually changing. </p>
269 :    
270 :     <p>However, when the plug-in is ready to be packaged, it needs to be converted
271 :     to a form suitable for packaging and installation. Typically it means creation
272 :     of the runtime .jar(s) and removing any development-time files (source,
273 :     exposed .class files, etc). It also means updating the plugin.xml manifest
274 :     with the formal plug-in version and reflecting the version in the plug-in
275 :     directory name (see "Concurrent Plug-In Version Support" for details). </p>
276 :    
277 : celek 1.7 <p><b>Plug-in Fragment</b> <br>
278 : celek 1.11 Plug-in Fragments (or simply Fragments) allow independent packaging of
279 :     certain aspects of the base plug-in. This includes (but may not be limited
280 :     to) translated resources for the plug-in, OS-specific or windowing-system-specific
281 :     code. At runtime, fragments are logically merged into the base plug-in. From
282 :     a packaging point of view, the install and update support does not really
283 : celek 1.10 differentiate between plug-ins and their related fragments. </p>
284 : celek 1.11
285 : celek 1.7 <p><b>Feature</b> <br>
286 : celek 1.11 A feature is an installation packaging mechanism used to define a group
287 :     of versioned plug-ins and/or plug-in fragments plus non-plug-in files that
288 :     is used to deliver some user function. A feature can also include other
289 :     features. Features are exposed to users as part of the packaging and installation
290 :     process, because they represent a unit of function selection. Features also
291 : celek 1.10 represent a unit of installation. Features carry a version identifier.</p>
292 : celek 1.11
293 :     <p>Features are packaged as a feature archive, referencing the required plug-ins,
294 :     plug-in fragments and optional non-plug-in files. The feature archives are
295 :     placed on an update server for download and installation by the Eclipse update
296 :     manager, or they can be used as the input into a formal packaging process
297 :     using one of the "traditional" installer technologies. The format of the
298 :     feature archive is described later. </p>
299 :    
300 : celek 1.9 <h3> <a name="Framework"></a> Framework</h3>
301 : celek 1.11 The 2.0 installation and update support is provided as a framework that
302 :     allows custom implementations to be supplied for its key elements. In particular,
303 :     the following can be supplied:
304 : vlad 1.1 <ul>
305 : celek 1.11 <li> concrete implementations of feature (IFeature interface) that can
306 :     be used to support alternate packaging schemes. New concrete feature types
307 :     are registere via the "org.eclipse.update.featureTypes" extension point.</li>
308 :     <li> concrete implementations of site (ISite interface) that can be
309 :     used to support alternate site layout, or site behavior. New concrete site
310 :     types are registered via the "org.eclipse.update.siteTypes" extension point.</li>
311 :     <li> each feature can specify a custom install handler as part of its
312 :     feature manifest. Install handlers (IInstallHandler interface) are dynamically
313 :     invoked as part of the installation process to handle non-plugin data, plus
314 :     perform other custom processing allowed by the framework.</li>
315 :    
316 : celek 1.7 </ul>
317 : celek 1.11 Eclipse provides default implementations of feature and site. These are
318 :     described in the rest of this document. <br>
319 :     &nbsp;
320 : celek 1.7 <table border="1" cols="1" width="100%">
321 : celek 1.11 <tbody>
322 :     <tr>
323 :     <td><b>Note: <i>The reminder of this document describes the default concrete
324 :     implementation of the framework delivered with Eclipse. It specifies the
325 :     structure of the default feature implementation, as well as the default
326 :     site implementation, plus the corresponding xml files (feature.xml and site.xml).
327 :     Providers of alternate concrete implementations can extend&nbsp; parts or
328 :     all of the default Eclipse implementation. This includes providing a mechanism
329 :     for dynamic computation of the site map (site.xml)</i></b></td>
330 :     </tr>
331 :    
332 :     </tbody>
333 : vlad 1.1 </table>
334 : celek 1.11
335 : celek 1.9 <h2> <a name="Packaging_Conventions"></a> Packaging Conventions</h2>
336 : celek 1.11 Default feature packages consist of several related files:
337 : celek 1.7 <ul>
338 : celek 1.11 <li> exactly one jar containing the feature manifest and related files.
339 : celek 1.10 This one is refered to as the "<b>feature archive</b>"</li>
340 : celek 1.11 <li> zero or more jars containing the feature plug-ins. These are refered
341 : celek 1.10 to as the "<b>plug-in archives</b>"</li>
342 : celek 1.11 <li> zero or more non-plug-in files associated with the feature. They
343 :     are used by feature custom install handlers and contain data not interpreted
344 : celek 1.10 by Eclipse</li>
345 : celek 1.11
346 : celek 1.9 </ul>
347 : celek 1.11
348 : celek 1.9 <h3> <a name="Feature_Archive"></a> Feature Archive</h3>
349 : celek 1.11 The feature packaging information is placed into a separate Java .jar.
350 :     Standard Java jar facilities are used for constructing feature archives.
351 :     Feature archives reference separately packaged plug-in archives (see next
352 :     section) and non-plug-in files.
353 :     <p>Features are identified using a structured identifier based on the provider
354 :     internet domain name. For example, organization eclipse.org may produce
355 :     feature org.eclipse.javatooling. The character set used for feature identifiers
356 :     is as specified for plug-in identifiers (see reference information describing
357 :     the plug-in manifest). </p>
358 :    
359 : celek 1.7 <p>The recommended convention for naming the feature archives is <br>
360 : celek 1.11 <tt>&lt;id&gt;_&lt;version&gt;.jar</tt> </p>
361 :    
362 :     <p>Where <tt>&lt;id&gt;</tt> is the feature identifier and <tt>&lt;version&gt;</tt>
363 :     is the full version identifier contained in the respective feature.xml.
364 :     Note that this is a recommended convention that minimizes chance of collisions,
365 :     but is not required by the Eclipse architecture. For example, the following
366 :     are valid feature archive names </p>
367 :    
368 : celek 1.7 <p><tt>org.eclipse.javatooling_1.0.3.jar</tt> <br>
369 : celek 1.11 <tt>org.eclipse.pde_2.0.jar</tt> <br>
370 :     <tt>my_feature.jar</tt> </p>
371 :    
372 :     <p>Internally, each feature archive is packaged relative to its feature directory
373 :     (but not including the directory path element). The archive has the following
374 : celek 1.10 structure </p>
375 : celek 1.11
376 : celek 1.7 <p><tt>feature.xml</tt> <br>
377 : celek 1.11 <tt>feature&lt;_locale&gt;.properties (see "Translated Feature Information")</tt>
378 : celek 1.10 <br>
379 : celek 1.11 <tt>other feature files and subdirectories (TBD)</tt> <br>
380 :     <tt>META-INF/</tt> <br>
381 :     <tt>&nbsp;&nbsp;&nbsp; Java jar manifest and security files</tt> </p>
382 :    
383 : celek 1.7 <p>The feature install.xml format is defined by the following dtd: </p>
384 : celek 1.11
385 : celek 1.7 <p><tt>&lt;?xml encoding="ISO-8859-1"?&gt;</tt> </p>
386 : celek 1.11
387 :     <p><tt>&lt;!ELEMENT feature (install-handler?, description?, copyright?,
388 :     license?, url?, includes*, requires?, plugin*, data*)&gt;</tt> <br>
389 :     <tt>&lt;!ATTLIST feature</tt> <br>
390 :     <tt>&nbsp;&nbsp;&nbsp; id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
391 :     CDATA #REQUIRED</tt> <br>
392 :     <tt>&nbsp;&nbsp;&nbsp; version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CDATA
393 : celek 1.10 #REQUIRED</tt> <br>
394 : celek 1.11 <tt>&nbsp;&nbsp;&nbsp; label&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
395 :     CDATA #IMPLIED</tt> <br>
396 :     <tt>&nbsp;&nbsp;&nbsp; provider-name CDATA #IMPLIED</tt> <br>
397 :     <tt>&nbsp;&nbsp;&nbsp; image&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
398 :     CDATA #IMPLIED</tt> <br>
399 :     <tt>&nbsp;&nbsp;&nbsp; os&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
400 :     CDATA #IMPLIED</tt> <br>
401 :     <tt>&nbsp;&nbsp;&nbsp; arch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
402 :     CDATA #IMPLIED</tt> <br>
403 :     <tt>&nbsp;&nbsp;&nbsp; ws&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
404 :     CDATA #IMPLIED</tt> <br>
405 :     <tt>&nbsp;&nbsp;&nbsp; nl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
406 :     CDATA #IMPLIED</tt> <br>
407 :     <tt>&nbsp;&nbsp;&nbsp; colocation-affinity</tt> <br>
408 :     <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
409 :     CDATA #IMPLIED</tt> <br>
410 :     <tt>&nbsp;&nbsp;&nbsp; primary&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (true
411 : celek 1.10 | false) "false"</tt> <br>
412 : celek 1.11 <tt>&nbsp;&nbsp;&nbsp; application&nbsp;&nbsp; CDATA #IMPLIED</tt> <br>
413 :     <tt>&gt;</tt> </p>
414 :    
415 : celek 1.7 <p><tt>&lt;!ELEMENT install-handler EMPTY&gt;</tt> <br>
416 : celek 1.11 <tt>&lt;!ATTLIST install-handler</tt> <br>
417 :     <tt>&nbsp;&nbsp;&nbsp; library&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CDATA
418 : celek 1.10 #IMPLIED</tt> <br>
419 : celek 1.11 <tt>&nbsp;&nbsp;&nbsp; handler&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CDATA
420 : celek 1.10 #IMPLIED</tt> <br>
421 : celek 1.11 <tt>&gt;</tt> </p>
422 :    
423 : celek 1.7 <p><tt>&lt;!ELEMENT description (#PCDATA)&gt;</tt> <br>
424 : celek 1.11 <tt>&lt;!ATTLIST description</tt> <br>
425 :     <tt>&nbsp;&nbsp;&nbsp; url&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
426 :     CDATA #IMPLIED</tt> <br>
427 :     <tt>&gt;</tt> </p>
428 :    
429 : celek 1.7 <p><tt>&lt;!ELEMENT copyright (#PCDATA)&gt;</tt> <br>
430 : celek 1.11 <tt>&lt;!ATTLIST copyright</tt> <br>
431 :     <tt>&nbsp;&nbsp;&nbsp; url&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
432 :     CDATA #IMPLIED</tt> <br>
433 :     <tt>&gt;</tt> </p>
434 :    
435 : celek 1.7 <p><tt>&lt;!ELEMENT license (#PCDATA)&gt;</tt> <br>
436 : celek 1.11 <tt>&lt;!ATTLIST license</tt> <br>
437 :     <tt>&nbsp;&nbsp;&nbsp; url&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
438 :     CDATA #IMPLIED</tt> <br>
439 :     <tt>&gt;</tt> </p>
440 :    
441 : celek 1.7 <p><tt>&lt;!ELEMENT url (update?, discovery*)&gt;</tt> </p>
442 : celek 1.11
443 : celek 1.7 <p><tt>&lt;!ELEMENT update EMPTY&gt;</tt> <br>
444 : celek 1.11 <tt>&lt;!ATTLIST update</tt> <br>
445 :     <tt>&nbsp;&nbsp;&nbsp; url&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
446 :     CDATA #REQUIRED</tt> <br>
447 :     <tt>&nbsp;&nbsp;&nbsp; label&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
448 :     CDATA #IMPLIED</tt> <br>
449 :     <tt>&gt;</tt> </p>
450 :    
451 : celek 1.7 <p><tt>&lt;!ELEMENT discovery EMPTY&gt;</tt> <br>
452 : celek 1.11 <tt>&lt;!ATTLIST discovery</tt> <br>
453 :     <tt>&nbsp;&nbsp;&nbsp; url&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
454 :     CDATA #REQUIRED</tt> <br>
455 :     <tt>&nbsp;&nbsp;&nbsp; label&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
456 :     CDATA #IMPLIED</tt> <br>
457 :     <tt>&gt;</tt> </p>
458 :    
459 : celek 1.7 <p><tt>&lt;!ELEMENT includes EMPTY&gt;</tt> <br>
460 : celek 1.11 <tt>&lt;!ATTLIST includes</tt> <br>
461 :     <tt>&nbsp;&nbsp;&nbsp; id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
462 :     &nbsp;&nbsp;&nbsp; CDATA #REQUIRED</tt> <br>
463 :     <tt>&nbsp;&nbsp;&nbsp; version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
464 : celek 1.10 CDATA #REQUIRED</tt>&nbsp;<br>
465 : celek 1.11 <tt>&nbsp;&nbsp;&nbsp; name &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
466 :     &nbsp;&nbsp;&nbsp; CDATA #IMPLIED</tt> <br>
467 :     <tt>&nbsp;&nbsp;&nbsp; optional &nbsp;&nbsp;&nbsp;&nbsp; </tt><tt>&nbsp;&nbsp;&nbsp;
468 : celek 1.10 (true | false) "false"</tt><tt>&nbsp;<br>
469 : celek 1.11 </tt><tt>&nbsp;&nbsp;&nbsp; match&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
470 :     &nbsp;&nbsp;&nbsp; (perfect | equivalent | compatible | greaterOrEqual)
471 :     "compatible"</tt><tt> &nbsp; &nbsp;&nbsp;&nbsp; </tt><br>
472 :     <tt>&nbsp;&nbsp;&nbsp; search_location&nbsp;&nbsp; </tt><tt>(</tt><font
473 : celek 1.9 color="#000000"><tt> root | self | both) "root"</tt></font><br>
474 : celek 1.11 <tt>&gt;</tt> </p>
475 :    
476 : celek 1.7 <p><tt>&lt;!ELEMENT requires (import+)&gt;</tt> </p>
477 : celek 1.11
478 : celek 1.7 <p><tt>&lt;!ELEMENT import EMPTY&gt;</tt> <br>
479 : celek 1.11 <tt>&lt;!ATTLIST import</tt> <br>
480 :     <tt>&nbsp;&nbsp;&nbsp; plugin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
481 :     CDATA #IMPLIED</tt><br>
482 :     <tt>&nbsp;&nbsp;&nbsp; feature &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CDATA #IMPLIED</tt><br>
483 :     <tt>&nbsp;&nbsp;&nbsp; version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CDATA
484 : celek 1.10 #IMPLIED</tt> <br>
485 : celek 1.11 <tt>&nbsp;&nbsp;&nbsp; match&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
486 : celek 1.10 &nbsp;(perfect | equivalent | compatible | greaterOrEqual) "compatible"</tt>&nbsp;<br>
487 : celek 1.11 <tt>&nbsp;&nbsp;&nbsp; patch &nbsp;&nbsp;&nbsp;&nbsp; </tt><tt>&nbsp;&nbsp;
488 : celek 1.10 (true | false) "false"</tt><tt>&nbsp;</tt><tt><br>
489 : celek 1.11 &gt;</tt><br>
490 :     </p>
491 :    
492 : celek 1.7 <p><tt>&lt;!ELEMENT plugin EMPTY&gt;</tt> <br>
493 : celek 1.11 <tt>&lt;!ATTLIST plugin</tt> <br>
494 :     <tt>&nbsp;&nbsp;&nbsp; id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
495 :     CDATA #REQUIRED</tt> <br>
496 :     <tt>&nbsp;&nbsp;&nbsp; version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CDATA
497 : celek 1.10 #REQUIRED</tt> <br>
498 : celek 1.11 <tt>&nbsp;&nbsp;&nbsp; fragment&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (true |
499 :     false) "false"</tt> <br>
500 :     <tt>&nbsp;&nbsp;&nbsp; os&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
501 :     CDATA #IMPLIED</tt> <br>
502 :     <tt>&nbsp;&nbsp;&nbsp; arch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
503 :     CDATA #IMPLIED</tt> <br>
504 :     <tt>&nbsp;&nbsp;&nbsp; ws&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
505 :     CDATA #IMPLIED</tt> <br>
506 :     <tt>&nbsp;&nbsp;&nbsp; nl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
507 :     CDATA #IMPLIED</tt> <br>
508 :     <tt>&nbsp;&nbsp;&nbsp; download-size CDATA #IMPLIED</tt> <br>
509 :     <tt>&nbsp;&nbsp;&nbsp; install-size&nbsp; CDATA #IMPLIED</tt> <br>
510 :     <tt>&gt;</tt> </p>
511 :    
512 : celek 1.7 <p><tt>&lt;!ELEMENT data EMPTY&gt;</tt> <br>
513 : celek 1.11 <tt>&lt;!ATTLIST data</tt> <br>
514 :     <tt>&nbsp;&nbsp;&nbsp; id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
515 :     CDATA #REQUIRED</tt> <br>
516 :     <tt>&nbsp;&nbsp;&nbsp; os&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
517 :     CDATA #IMPLIED</tt> <br>
518 :     <tt>&nbsp;&nbsp;&nbsp; arch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
519 :     CDATA #IMPLIED</tt> <br>
520 :     <tt>&nbsp;&nbsp;&nbsp; ws&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
521 :     CDATA #IMPLIED</tt> <br>
522 :     <tt>&nbsp;&nbsp;&nbsp; nl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
523 :     CDATA #IMPLIED</tt> <br>
524 :     <tt>&nbsp;&nbsp;&nbsp; download-size CDATA #IMPLIED</tt> <br>
525 :     <tt>&nbsp;&nbsp;&nbsp; install-size&nbsp; CDATA #IMPLIED</tt> <br>
526 :     <tt>&gt;</tt> </p>
527 :    
528 : celek 1.7 <p>The element and attribute definitions are as follows: </p>
529 : celek 1.11
530 : celek 1.7 <ul>
531 : celek 1.11 <li> &lt;feature&gt; - defines the feature</li>
532 :    
533 : celek 1.7 <ul>
534 : celek 1.11 <li> id - required feature identifier (eg. com.xyz.myfeature)</li>
535 :     <li> version - required component version (eg. 1.0.3)</li>
536 :     <li> label - optional displayable label (name). Intended to be translated.</li>
537 :     <li> provider-name - optional display label identifying the organization
538 : celek 1.10 providing this component. Intended to be translated.</li>
539 : celek 1.11 <li> image - optional image to use when displaying information about
540 : celek 1.10 the feature.&nbsp; Specified relative to the feature.xml.</li>
541 : celek 1.11 <li> os - optional operating system specification. A comma-separated
542 :     list of os designators defined by Eclipse (see Javadoc for <tt>org.eclipse.core.boot.BootLoader)</tt>
543 :     . Indicates this feature should only be installed on one of the specified
544 :     os systems. If this attribute is not specified, the feature can be installed
545 :     on all systems (portable implementation). This information is used as a
546 :     hint by the installation and update support (user can force installation
547 :     of feature regardless of this setting).</li>
548 :     <li> arch - optional machine architecture specification. A comma-separated
549 :     list of architecture designators defined by Eclipse (see Javadoc for <tt>
550 :     org.eclipse.core.boot.BootLoader)</tt>. Indicates this feature should only
551 :     be installed on one of the specified systems. If this attribute is not specified,
552 :     the feature can be installed on all systems (portable implementation). This
553 :     information is used as a hint by the installation and update support (user
554 : celek 1.10 can force installation of feature regardless of this setting).</li>
555 : celek 1.11 <li> ws - optional windowing system specification. A comma-separated
556 :     list of ws designators defined by Eclipse (see Javadoc for <tt>org.eclipse.core.boot.BootLoader)</tt>
557 :     . Indicates this feature should only be installed on one of the specified
558 :     ws systems. If this attribute is not specified, the feature can be installed
559 :     on all systems (portable implementation). This information is used as a
560 :     hint by the installation and update support (user can force installation
561 :     of feature regardless of this setting).</li>
562 :     <li> nl - optional locale specification. A comma-separated list of locale
563 :     designators defined by Java. Indicates this feature should only be installed
564 :     on a system running with a compatible locale (using Java locale-matching
565 :     rules). If this attribute is not specified, the feature can be installed on
566 :     all systems (language-neutral implementation). This information is used as
567 :     a hint by the installation and update support (user can force installation
568 : celek 1.9 of feature regardless of this setting).</li>
569 : celek 1.11 <li> colocation-affinity - optional reference to another feature identifier
570 :     used to select the default installation location for this feature. When
571 :     this feature is being installed as a new feature (no other versions of it
572 :     are installed), an attempt is made to install this feature in the same installation
573 : celek 1.10 location as the referenced feature.</li>
574 : celek 1.11 <li> primary - optional indication specifying whether this feature can
575 :     be used as a <a href="#Dominant_Feature">primary feature</a> . Default if
576 :     <i>false</i> (not a primary feature).</li>
577 :     <li> application - optional identifier of the Eclipse application that
578 : celek 1.10 is to be used during startup when the declaring feature is the <a
579 : celek 1.11 href="#Dominant_Feature"> primary feature</a> . The application identifier
580 :     must represent a valid application registered in the <tt>org.eclipse.core.runtime.applications</tt>
581 :     extension point. Default is <tt>org.eclipse.ui.workbench</tt>.</li>
582 :    
583 : celek 1.7 </ul>
584 : celek 1.11 <li> &lt;install-handler&gt;</li>
585 :    
586 :     <ul>
587 :     <li> library - optional .jar library containing the install handler classes.
588 :     If specified, the referenced .jar must be contained in the feature archive.
589 :     It is specified as a path within the feature archive, relative to the feature.xml
590 :     entry. If not specified, the feature archive itself is used to load the
591 :     install handler classes. This attribute is only interpreted if <i>class</i>
592 :     attribute is also specified</li>
593 :     <li> handler - optional identifier of the install handler. The value
594 :     is interpreted depending on the value of the <i>library</i> attribute. If
595 :     <i> library</i> is specified,&nbsp; the value is interpreted as a fully
596 :     qualified name of a class contained in the specified <i>library</i>. If
597 :     <i>library</i> is not specified, the value is is interpreted as an
598 :     extension identifier of an extension registered in the <i>org.eclipse.update.installHandlers</i>
599 :     extension point. In either case, the resulting class must implement the
600 :     <i> IInstallHandler</i> interface. The class is dynamically loaded
601 :     and called at specific points during feature processing. The handler has
602 :     visibility to the API classes from the update plug-in, and Eclipse plug-ins
603 :     required by the update plugin.</li>
604 :    
605 :     </ul>
606 :     <li> &lt;description&gt; - brief component description as simple text.
607 : celek 1.10 Intended to be translated.</li>
608 : celek 1.11
609 : celek 1.7 <ul>
610 : celek 1.11 <li> url - optional URL for the full description as HTML. The URL can
611 :     be specified as absolute of relative. If relative, it is assumed to be relative
612 :     to (and packaged in) the feature archive. Note, that for NL handling the
613 :     URL value should be separated to allow alternate URLs to be specified for
614 : celek 1.10 each national language.</li>
615 : celek 1.11
616 : celek 1.7 </ul>
617 : celek 1.11 <li> &lt;copyright&gt; - feature copyright as simple text. Intended
618 :     to be translated.</li>
619 :    
620 :     <ul>
621 :     <li> url - optional URL for the full description as HTML. The URL can
622 :     be specified as absolute of relative. If relative, it is assumed to be relative
623 :     to (and packaged in) the feature archive. Note, that for NL handling the
624 :     URL value should be separated to allow alternate URLs to be specified for
625 : celek 1.10 each national language.</li>
626 : celek 1.11
627 : celek 1.9 </ul>
628 : celek 1.11 <li> &lt;license&gt; - feature "click-through" license as simple text.
629 :     Intended to be translated. It is displayed in a standard dialog with [Accept]
630 :     [Reject] actions during the download/ installation process. Note, that click-through
631 :     license must be specified for any feature that will be selected for installation
632 :     or update using the Eclipse update manager. When using nested features,
633 :     only the nesting parent (ie. the feature selected for installation or update)
634 :     must have click-through license text defined. The license text is required
635 :     even if the optional <i>url</i> attribute is specified.</li>
636 :    
637 :     <ul>
638 :     <li> url - optional URL for the full description as HTML. The URL can
639 :     be specified as absolute of relative. If relative, it is assumed to be relative
640 :     to (and packaged in) the feature archive. Note, that for NL handling the
641 :     URL value should be separated to allow alternate URLs to be specified for
642 :     each national language. Note, that the "content" of this URL is <b>not</b>
643 :     what is presented as the click-through license during installation processing.
644 :     The click-through license is the actual value of the <i>&lt;license&gt;</i>
645 : celek 1.10 element (eg. <tt>&lt;license&gt;click through text&lt;/license&gt;</tt>)</li>
646 : celek 1.11
647 : celek 1.7 </ul>
648 : celek 1.11 <li> &lt;url&gt; - optional URL specifying site(s) contain feature updates,
649 : celek 1.10 or new features</li>
650 : celek 1.11
651 : celek 1.7 <ul>
652 : celek 1.11 <li> &lt;update&gt; - URL to go to for updates to this feature</li>
653 :    
654 : celek 1.7 <ul>
655 : celek 1.11 <li> url - actual URL</li>
656 :     <li> label - displayable label (name) for the referenced site</li>
657 :    
658 : celek 1.7 </ul>
659 : celek 1.11 <li> &lt;discovery&gt; - URL to go to for new features. In general,
660 :     a provider can use this element to reference its own site(s), or site(s)
661 :     of partners that offer complementary features. Eclipse uses this element
662 :     simply as a way to distribute new site URLs to the clients</li>
663 :    
664 : celek 1.7 <ul>
665 : celek 1.11 <li> url - actual URL</li>
666 :     <li> label - displayable label (name) for the referenced site</li>
667 :    
668 :     </ul>
669 : celek 1.10
670 : celek 1.7 </ul>
671 : celek 1.11 <li> &lt;includes&gt; - optional reference to a nested feature that
672 :     is considered to be part of this feature. Nested features must be located
673 :     on the same update site as this feature</li>
674 :    
675 :     <ul>
676 :     <li> id - required nested feature identifier</li>
677 :     <li> version - required nested feature version</li>
678 :     <li> name- optional displayable label (name). Intended to be translated.</li>
679 :     <li>optional - optional specification indicating if this included
680 :     feature can be optionally installed. Default is "false"<br>
681 :     </li>
682 :     <li>match&nbsp; - optional rule that will be applied when resolving
683 :     the feature reference. A <samp>perfect</samp> match (the default that matches
684 :     the 2.0.1 behavior) requires that the feature has exactly the version specified
685 :     by the version attribute. Other choices progressively relax the rule (<samp>
686 :     equivalent</samp> allows only service part of the version to be more recent,
687 :     <samp>compatible</samp> also allows minor part to be included in the
688 :     consideration, while <samp>greaterOrEqual</samp> simply allows any version
689 : celek 1.10 that is more recent or identical to the one specified).</li>
690 : celek 1.11 <li>search_location&nbsp; - optional. Indicates whether the "New Updates"
691 :     action should search the update location determined by the nesting root feature
692 :     (<tt>root</tt>, is the default), or the location defined by the nested feature
693 :     (<tt>self</tt>), or search both (<tt>both</tt>) in that order (root first,
694 :     self if nothing is found).</li>
695 :    
696 :     </ul>
697 :     <li> &lt;requires&gt; - optional feature dependency information. Is
698 :     expressed in terms of plug-in dependencies. If specified, is enforced by
699 :     the installation and update support at the time of installation</li>
700 :    
701 : celek 1.7 <ul>
702 : celek 1.11 <li> &lt;import&gt; - dependency entry. Specification and processing
703 :     is a subset of the &lt;import&gt; specification in plugin.xml</li>
704 :    
705 : celek 1.7 <ul>
706 : celek 1.11 <li> plugin - identifier of dependent plug-in.</li>
707 :     <li> feature - identifier of dependent feature. If plugin and feature
708 :     are specified, plugin takes precedence upon feature. Feature or plugin must
709 : celek 1.10 be specified.</li>
710 : celek 1.11 <li> version - optional plug-in/feature version specification</li>
711 :     <li>patch - optional specification indicating if this feature is
712 :     a patch of the dependant feature. Default is "false". If patch is true, version
713 :     must be specified. If patch is true, only feature must be specified. If
714 :     patch is true, and match is specified, it must be 'perfect'.<br>
715 :     </li>
716 :     <li> match - optional matching rule. Valid values and processing are
717 : celek 1.10 as follows:</li>
718 : celek 1.11
719 : celek 1.7 <ul>
720 : celek 1.11 <li> if version attribute is not specified, the match attribute (if specified)
721 :     is ignored.</li>
722 :     <li>if version is specified, match defaults to compatible.<br>
723 :     </li>
724 :     <li>if patch is true, and match is not specified, match defaults
725 : celek 1.10 to perfect.<br>
726 : celek 1.11 </li>
727 :     <li> <b><i>perfect</i></b> - dependent plug-in version must match exactly
728 : celek 1.10 the specified version.</li>
729 : celek 1.11 <li> <b><i>equivalent</i></b> - dependent plug-in version must be at
730 :     least at the version specified, or at a higher service level (major and minor
731 :     version levels must equal the specified version).</li>
732 :     <li> <b><i>compatible</i></b> - dependent plug-in version must be at
733 :     least at the version specified, or at a higher service level or minor level
734 : celek 1.10 (major version level must equal the specified version).</li>
735 : celek 1.11 <li> <b><i>greaterOrEqual</i></b> - dependent plug-in version must be
736 :     at least at the version specified, or at a higher service, minor or major
737 :     level.</li>
738 :    
739 : celek 1.7 </ul>
740 : celek 1.11
741 :     </ul>
742 : celek 1.10
743 : celek 1.7 </ul>
744 : celek 1.11 <li> &lt;plugin&gt; - identifies referenced plug-in</li>
745 :    
746 : celek 1.7 <ul>
747 : celek 1.11 <li> id - required plug-in identifier (from plugin.xml)</li>
748 :     <li> version - required plug-in version (from plugin.xml)</li>
749 :     <li> fragment - optional specification indicating if this entry is a
750 : celek 1.10 plug-in fragment. Default is "false"</li>
751 : celek 1.11 <li> os - optional operating system specification. A comma-separated
752 :     list of os designators defined by Eclipse (see Javadoc for <tt>org.eclipse.core.boot.BootLoader)</tt>
753 :     . Indicates this entry should only be installed on one of the specified os
754 :     systems. If this attribute is not specified, the entry can be installed
755 :     on all systems (portable implementation). This information is used as a
756 :     hint by the installation and update support (user can force installation
757 :     of entry regardless of this setting).</li>
758 :     <li> arch - optional machine architecture specification. A comma-separated
759 :     list of architecture designators defined by Eclipse (see Javadoc for <tt>
760 :     org.eclipse.core.boot.BootLoader)</tt>. Indicates this feature should only
761 :     be installed on one of the specified systems. If this attribute is not specified,
762 :     the feature can be installed on all systems (portable implementation). This
763 :     information is used as a hint by the installation and update support (user
764 : celek 1.10 can force installation of feature regardless of this setting).</li>
765 : celek 1.11 <li> ws - optional windowing system specification. A comma-separated
766 :     list of ws designators defined by Eclipse (see Javadoc for <tt>org.eclipse.core.boot.BootLoader)</tt>
767 :     . Indicates this entry should only be installed on one of the specified ws
768 :     systems. If this attribute is not specified, the entry can be installed
769 :     on all systems (portable implementation). This information is used as a
770 :     hint by the installation and update support (user can force installation
771 :     of entry regardless of this setting).</li>
772 :     <li> nl - optional locale specification. A comma-separated list of locale
773 :     designators defined by Java. Indicates this entry should only be installed
774 :     on a system running with a compatible locale (using Java locale-matching
775 :     rules). If this attribute is not specified, the entry can be installed on
776 :     all systems (language-neutral implementation). This information is used as
777 :     a hint by the installation and update support (user can force installation
778 : celek 1.10 of entry regardless of this setting).</li>
779 : celek 1.11 <li> download-size - optional hint supplied by the feature packager,
780 :     indicating the download size in KBytes of the referenced plug-in archive.
781 :     If not specified, the download size is not known (<b>Implementation Note:</b>
782 : celek 1.10 the implementation needs to distinguish between "not known" and 0 size)</li>
783 : celek 1.11 <li> install-size - optional hint supplied by the feature packager,
784 :     indicating the install size in KBytes of the referenced plug-in archive.
785 :     If not specified, the install size is not known (<b>Implementation Note:</b>
786 :     the implementation needs to distinguish between "not known" and 0 size)</li>
787 :    
788 :     </ul>
789 :     <li> &lt;data&gt; - identifies non-plugin data that is part of the feature</li>
790 :    
791 :     <ul>
792 :     <li> id - required data identifier in the form of a relative path.</li>
793 :     <li> os - optional operating system specification. A comma-separated
794 :     list of os designators defined by Eclipse (see Javadoc for <tt>org.eclipse.core.boot.BootLoader)</tt>
795 :     . Indicates this entry should only be installed on one of the specified os
796 :     systems. If this attribute is not specified, the entry can be installed
797 :     on all systems (portable implementation). This information is used as a
798 :     hint by the installation and update support (user can force installation
799 :     of entry regardless of this setting).</li>
800 :     <li> arch - optional machine architecture specification. A comma-separated
801 :     list of architecture designators defined by Eclipse (see Javadoc for <tt>
802 :     org.eclipse.core.boot.BootLoader)</tt>. Indicates this feature should only
803 :     be installed on one of the specified systems. If this attribute is not specified,
804 :     the feature can be installed on all systems (portable implementation). This
805 :     information is used as a hint by the installation and update support (user
806 : celek 1.10 can force installation of feature regardless of this setting).</li>
807 : celek 1.11 <li> ws - optional windowing system specification. A comma-separated
808 :     list of ws designators defined by Eclipse (see Javadoc for <tt>org.eclipse.core.boot.BootLoader)</tt>
809 :     . Indicates this entry should only be installed on one of the specified ws
810 :     systems. If this attribute is not specified, the entry can be installed
811 :     on all systems (portable implementation). This information is used as a
812 :     hint by the installation and update support (user can force installation
813 :     of entry regardless of this setting).</li>
814 :     <li> nl - optional locale specification. A comma-separated list of locale
815 :     designators defined by Java. Indicates this entry should only be installed
816 :     on a system running with a compatible locale (using Java locale-matching
817 :     rules). If this attribute is not specified, the entry can be installed on
818 :     all systems (language-neutral implementation). This information is used as
819 :     a hint by the installation and update support (user can force installation
820 : celek 1.10 of entry regardless of this setting).</li>
821 : celek 1.11 <li> download-size - optional hint supplied by the feature packager,
822 :     indicating the download size in KBytes of the referenced data archive. If
823 :     not specified, the download size is not known (<b>Implementation Note:</b>
824 : celek 1.10 the implementation needs to distinguish between "not known" and 0 size)</li>
825 : celek 1.11 <li> install-size - optional hint supplied by the feature packager,
826 :     indicating the install size in KBytes of the referenced data archive. If
827 :     not specified, the install size is not known (<b>Implementation Note:</b>
828 :     the implementation needs to distinguish between "not known" and 0 size)</li>
829 :    
830 : celek 1.10 </ul>
831 : celek 1.11
832 : celek 1.9 </ul>
833 : celek 1.11 <a name="Feature_Archive_Mapping_Id_To_Path"></a> When interacting with
834 :     the update site, the feature implementation maps the <tt>&lt;plugin&gt;</tt>
835 :     and <tt>&lt;data&gt;</tt> elements into path identifiers used by the site
836 :     to determine the actual files to download and install. The default feature
837 :     implementation supplied by Eclipse constructs the path identifiers as follows:
838 :    
839 : celek 1.7 <ul>
840 : celek 1.11 <li> <tt>&lt;plugin&gt;</tt> element results in a path entry in the form
841 :     "<tt>plugins/&lt;pluginId&gt;_&lt;pluginVersion&gt;.jar</tt>" (for example,
842 : celek 1.10 "<tt>plugins/org.eclipse.core.boot_1.0.3.jar</tt>")</li>
843 : celek 1.11 <li> <tt>&lt;data&gt;</tt> element results in a path entry in the form
844 :     "<tt>features/&lt;featureId&gt;_&lt;featureVersion&gt;/&lt;dataId&gt;</tt>
845 : celek 1.10 " (for example, "f<tt>eatures/com.xyz.tools_2.3.1/examples.zip</tt>")</li>
846 : celek 1.11
847 : celek 1.7 </ul>
848 : celek 1.11 Note, that in general the feature.xml&nbsp; manifest documents should
849 :     specify UTF-8 encoding. For example
850 : celek 1.7 <p><tt>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</tt> </p>
851 : celek 1.11
852 :     <p>Translatable text contained in the feature.xml can be separated into feature&lt;_locale&gt;.properties
853 :     files using Java property bundle conventions. Note that the translated strings
854 :     are used at installation time (ie. do not employ the plug-in fragment runtime
855 : celek 1.10 mechanism). </p>
856 : celek 1.11
857 : celek 1.9 <h3> <a name="Plug-In_Archive"></a> Plug-In Archive</h3>
858 : celek 1.11 Plug-ins and plug-in fragments are individually packaged as separate
859 :     Java .jars. Standard Java jar facilities are used for constructing plug-in
860 :     archives. There is no distinction made between a plug-in archive containing
861 :     a plug-in and one containing a plug-in fragment.
862 : celek 1.7 <p>The recommended convention for naming the plug-in archives is <br>
863 : celek 1.11 <tt>&lt;id&gt;_&lt;version&gt;.jar</tt> </p>
864 :    
865 :     <p>Where <tt>&lt;id&gt;</tt> is the plug-in or fragment identifier and <tt>
866 :     &lt;version&gt;</tt> is the full version identifier contained in the respective
867 :     plugin.xml or fragment.xml. Note that this is a recommended convention that
868 :     minimizes chance of collisions, but is not required by the Eclipse architecture.
869 :     For example, the following are valid plug-in archive names </p>
870 :    
871 : celek 1.7 <p><tt>org.eclipse.platform_1.0.3.jar</tt> <br>
872 : celek 1.11 <tt>org.eclipse.ui.nl_2.0.jar</tt> <br>
873 :     <tt>my_plugin.jar</tt> </p>
874 :    
875 :     <p>Internally, each plug-in archive packages all the relevant plug-in or
876 :     fragment files relative to its plug-in or fragment directory (but not including
877 :     the directory path element). The archive has the following structure </p>
878 :    
879 : celek 1.7 <p><tt>plugin.xml *OR* fragment.xml</tt> <br>
880 : celek 1.11 <tt>other plug-in or feature files and subdirectories</tt> <br>
881 :     <tt>META-INF/</tt> <br>
882 :     <tt>&nbsp;&nbsp;&nbsp; Java jar manifest and security files</tt> </p>
883 :    
884 : celek 1.9 <h3> <a name="Packaging_NL"></a> Packaging NL</h3>
885 : celek 1.11 In Eclipse, translated plug-in information is packaged either together
886 :     with the base plug-in, or as a plug-in fragment. At runtime, Eclipse locates
887 :     the translations for the required locale. The use of fragments allows translations
888 :     to be added to the runtime without the need to repackage the base plug-ins.
889 :    
890 :     <p>This mechanism cannot be used for translating the actual packaging information
891 :     that is part of the installation xml files. Consequently the standard Java
892 :     translation conventions are used for the packaging information, and all
893 :     necessary translations must be available at the time the feature is packaged.
894 :     </p>
895 :    
896 : celek 1.9 <h4> <a name="Translated_Feature_Information"></a> Translated Feature Information</h4>
897 : celek 1.11 <b>Note:</b> This section describes the conventions used for translating
898 :     the information contained within the feature manifest. It allows for the
899 :     update client to select the correctly localized strings from the update
900 :     server. This section specifically does not describe localization of individual
901 :     plug-ins.
902 :     <p>Several of the attributes within the feature manifest are strings intended
903 :     for display through user interfaces. To facilitate translation, these attribute
904 :     values use the convention defined for translatable attributes of plugin.xml.
905 :     Strings beginning with % up to the first space are treated as resource
906 :     identifier keys (without the %) and looked up in a properties file. For
907 :     example </p>
908 :    
909 : celek 1.7 <p><tt>label="%cfg Tool Feature for Linux"</tt> </p>
910 : celek 1.11
911 :     <p>results in a resource lookup in the correct property file with key "cfg".
912 :     If no property files are supplied, or the key is not found the default
913 :     string value (following the %key) is used. </p>
914 :    
915 :     <p>The property files are named as feature_&lt;locale&gt;.properties using
916 :     the Java resource bundle naming conventions. Within the feature archive
917 :     .jar they are placed in the same directory as their corresponding feature.xml
918 :     file. </p>
919 :    
920 :     <p><b>Implementation Note</b>: When accessing the resource bundles the Eclipse
921 :     installation and update code should create a class loader for accessing the
922 :     translated string. This way, the standard locale lookup algorithm implemented
923 :     by Java is automatically used. </p>
924 :    
925 : celek 1.7 <p><tt>ResourceBundle b;</tt> <br>
926 : celek 1.11 <tt>ClassLoader l;</tt> <br>
927 :     <tt>l = new URLClassLoader(new URL[] {&lt;targetDirectoryURL&gt;}, null);</tt>
928 : celek 1.10 <br>
929 : celek 1.11 <tt>b = ResourceBundle.getBundle("feature",Locale.getDefault(),l);</tt>
930 : celek 1.9 </p>
931 : celek 1.11
932 :     <p>The resulting resource bundle can be used in <tt>IPluginDescriptor.getResourceString(String,ResourceBundle)</tt>
933 :     to actually return the correct translated string for the manifest attribute.
934 :     </p>
935 :    
936 : celek 1.9 <h4> <a name="Translated_Plug-In_Information"></a> Translated Plug-In Information</h4>
937 : celek 1.11 No change from 1.0. Translated plug-in information should be packaged
938 :     as plug-in fragments.
939 :     <h3> <a name="Packaging_Target-Specific_Support"></a> Packaging Target-Specific
940 :     Support</h3>
941 :     No change from 1.0. Target-specific plug-in support (os, ws) should be
942 :     packaged as plug-in fragments.
943 :     <h3> <a name="Packaging_Attribution_Information"></a> Packaging Attribution
944 :     Information</h3>
945 :     This topic is covered in separate documents available on the eclipse.org
946 :     development resources page of the Update component.
947 : celek 1.9 <h3> <a name="Packaging_Non_Plug_In_Files"></a> Packaging Non-Plug-In Files</h3>
948 : celek 1.11 Arbitrary non-plug-in files can be included as part of the feature definition
949 :     using the <tt>&lt;data&gt;</tt> elements. Non-plug-in files typically also
950 :     requires specification of a custom install handler. In general, the Eclipse
951 :     support only downloads the referenced non-plug-in files and calls the custom
952 :     install handler to perform any actual installation steps.
953 : celek 1.7 <p>Eclipse does not specify the format of the non-plug-in files. </p>
954 : celek 1.11
955 : celek 1.9 <h3> <a name="Custom_Install_Handling"></a> Custom Install Handling</h3>
956 : celek 1.11 Custom install handlers are written as a Java class and are packaged
957 :     as part of the <a href="#Feature_Archive">feature archive</a> . The installer
958 :     must implement the <tt>IInstallHandler</tt> interface (in most cases will
959 :     extend the <tt>BaseInstallHandler</tt> abstract helper class which implements
960 :     <tt>IInstallHandler</tt>). When required, the install handler is dynamically
961 :     loaded by the installation and update code, and is called at specific points
962 :     during its processing. The install handler code has visibility to classes
963 :     from the installation and update support plug-in, and its prerequisite plug-ins.
964 :    
965 :     <p><b>Implementation Note:</b> the detailed list of visible prerequisite
966 :     plug-ins is still evolving. It is expected to include <tt>org.eclipse.core.boot
967 :     </tt> and <tt>org.eclipse.core.runtime</tt> in all cases, plus <tt>org.eclipse.ui</tt>
968 :     and <tt>org.eclipse.swt</tt> when running with full workbench (ie. not "headless
969 :     mode"). Also, it would be useful to always expose <tt>org.eclipse.core.ant</tt>
970 :     so that build scripts can be used as part of the install handler implementation.
971 :     </p>
972 :    
973 :     <p>The IInstallHandler interface supports the following methods [<b>Implementation
974 :     Note:</b> the detailed definition of the IInstallHandler interface is still
975 :     evolving. The description below is not an API specification (simply a functional
976 :     description)]: </p>
977 :    
978 : celek 1.7 <ul>
979 : celek 1.11 <li> install-initiated - the install handler is called after a feature
980 :     was selected for installation, but before any files were downloaded. It
981 :     is intended to implement any custom click-through or user registration
982 :     dialogs. The base implementation of this method supplied with the abstract
983 :     class <tt>BaseInstallHandler </tt>performs the default click-through
984 :     processing using the license text supplied as part of the feature manifest.
985 :     On return this method indicates success (installation continues) of failure
986 :     (installation is aborted).</li>
987 :     <li> install-downloaded - the install handler is called after all the
988 :     required feature files were downloaded (feature, plugins, data) but before
989 :     the actual installation is performed. The install handler is expected to
990 :     perform verification of the non-plug-in data files (eg. security), or any
991 :     other pre-install processing.&nbsp; On return this method indicates success
992 :     (installation continues) or failure (installation is aborted).</li>
993 :     <li> install-completion - the install handler is called after the feature
994 :     information and the plug-ins were installed. It is expected to complete the
995 :     installation of any non-plug-in data that was part of the feature. On return
996 :     this method indicates success (returns custom install log) or failure (installation
997 :     is aborted). On failure, the install handler is expected to perform any
998 :     required cleanup.</li>
999 :     <li> uninstall-initiated - the install handler is called when a feature
1000 :     is selected for removal, but before any of the standard uninstall processing
1001 :     has taken place. It is passed the custom install log created by the install
1002 : celek 1.10 handler install-completion step.</li>
1003 : celek 1.11 <li> uninstall-completion - the install handler is called on completion
1004 :     of the standard uninstall steps. It is passed the custom install log created
1005 : celek 1.10 by the install handler install-completion step.</li>
1006 : celek 1.11
1007 : celek 1.7 </ul>
1008 : celek 1.11 Note, that as a general practice, install handlers should be provided
1009 :     in their own jars (even though they could be just exposed in the feature
1010 :     archive jar). The jar should be signed, and sealed.
1011 : celek 1.9 <h3> <a name="Security_Considerations"></a> Security Considerations</h3>
1012 : celek 1.11 The general approach is to use base Java jar signing for the feature
1013 :     and plug-in archive .jars.
1014 : celek 1.7 <p>Features are verified as follows: </p>
1015 : celek 1.11
1016 : celek 1.7 <ul>
1017 : celek 1.11 <li> download and verify the feature archive (use base Java jar verification)</li>
1018 :     <li> for each plug-in archive</li>
1019 :    
1020 :     <ul>
1021 :     <li> verify the archive jar content (use base Java jar verification)</li>
1022 :     <li> verify plug-in id and version from <tt>&lt;plugin&gt;</tt> entry
1023 :     in feature manifest matches downloaded plugin.xml</li>
1024 :    
1025 : celek 1.7 </ul>
1026 : celek 1.11 <li> for each non-plugin file</li>
1027 :    
1028 : celek 1.7 <ul>
1029 : celek 1.11 <li> call install handler to verify file</li>
1030 :    
1031 : celek 1.10 </ul>
1032 : celek 1.11
1033 : celek 1.9 </ul>
1034 : celek 1.11 In general, when processing signed jars, the user will be prompted for
1035 :     each unrecognized certificate. The response choices will include aborting
1036 :     the installation (originator is not trusted), continuing the installation
1037 :     (originator is trusted for this installation).
1038 : celek 1.9 <h2> <a name="Update_Server"></a> Update Server</h2>
1039 : celek 1.11 The default Eclipse update server is any URL-accessible server. The default
1040 :     implementation assumes a fixed-layout server. The content of the server
1041 :     (in terms of available features and plug-ins) is described in a site map
1042 :     file, <i>site.xml</i>. This file can be manually maintained, or can be dynamically
1043 :     computed by the server.
1044 : celek 1.9 <h3> <a name="Site_Map"></a> Site Map</h3>
1045 : celek 1.11 The update server URL can be specified as a full URL to the site map
1046 :     file, or a URL of a directory path containing the site map file (similar
1047 :     to index.html processing). The site map site.xml format is defined by the
1048 :     following dtd:
1049 : celek 1.7 <p><tt>&lt;?xml encoding="ISO-8859-1"?&gt;</tt> </p>
1050 : celek 1.11
1051 :     <p><tt>&lt;!ELEMENT site (description?, feature*, archive*, category-def*)&gt;</tt>
1052 : celek 1.10 <br>
1053 : celek 1.11 <tt>&lt;!ATTLIST site</tt> <br>
1054 :     <tt>&nbsp;&nbsp;&nbsp; type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1055 :     CDATA #IMPLIED</tt> <br>
1056 :     <tt>&nbsp;&nbsp;&nbsp; url&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1057 :     CDATA #IMPLIED</tt> <br>
1058 :     <tt>&gt;</tt> </p>
1059 :    
1060 : celek 1.7 <p><tt>&lt;!ELEMENT description (#PCDATA)&gt;</tt> <br>
1061 : celek 1.11 <tt>&lt;!ATTLIST description</tt> <br>
1062 :     <tt>&nbsp;&nbsp;&nbsp; url&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1063 :     CDATA #IMPLIED</tt> <br>
1064 :     <tt>&gt;</tt> </p>
1065 :    
1066 : celek 1.7 <p><tt>&lt;!ELEMENT feature (category*)&gt;</tt> <br>
1067 : celek 1.11 <tt>&lt;!ATTLIST feature</tt> <br>
1068 :     <tt>&nbsp;&nbsp;&nbsp; type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1069 :     CDATA #IMPLIED</tt> <br>
1070 :     <tt>&nbsp;&nbsp;&nbsp; id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1071 :     CDATA #IMPLIED</tt> <br>
1072 :     <tt>&nbsp;&nbsp;&nbsp; version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CDATA
1073 : celek 1.10 #IMPLIED</tt> <br>
1074 : celek 1.11 <tt>&nbsp;&nbsp;&nbsp; url&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1075 :     CDATA #REQUIRED<br>
1076 :     &nbsp;&nbsp;&nbsp; label &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CDATA #IMPLIED<br>
1077 :     </tt><tt>&nbsp;&nbsp;&nbsp; os&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1078 :     CDATA #IMPLIED</tt> <br>
1079 :     <tt>&nbsp;&nbsp;&nbsp; arch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1080 :     CDATA #IMPLIED</tt> <br>
1081 :     <tt>&nbsp;&nbsp;&nbsp; ws&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1082 :     CDATA #IMPLIED</tt> <br>
1083 :     <tt>&nbsp;&nbsp;&nbsp; nl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1084 :     CDATA #IMPLIED</tt><br>
1085 :     <tt>&nbsp;&nbsp;&nbsp; patch &nbsp;&nbsp;&nbsp;&nbsp; </tt><tt>&nbsp;&nbsp;
1086 : celek 1.10 (true | false) "false"</tt><br>
1087 : celek 1.11 <tt> &gt;</tt> </p>
1088 :    
1089 : celek 1.7 <p><tt>&lt;!ELEMENT archive EMPTY&gt;</tt> <br>
1090 : celek 1.11 <tt>&lt;!ATTLIST archive</tt> <br>
1091 :     <tt>&nbsp;&nbsp;&nbsp; path&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1092 :     CDATA #REQUIRED</tt> <br>
1093 :     <tt>&nbsp;&nbsp;&nbsp; url&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1094 :     CDATA #REQUIRED</tt> <br>
1095 :     <tt>&gt;</tt> </p>
1096 :    
1097 : celek 1.7 <p><tt>&lt;!ELEMENT category EMPTY&gt;</tt> <br>
1098 : celek 1.11 <tt>&lt;!ATTLIST category</tt> <br>
1099 :     <tt>&nbsp;&nbsp;&nbsp; name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1100 :     CDATA #REQUIRED</tt> <br>
1101 :     <tt>&gt;</tt> </p>
1102 :    
1103 : celek 1.7 <p><tt>&lt;!ELEMENT category-def (description?)&gt;</tt> <br>
1104 : celek 1.11 <tt>&lt;!ATTLIST category-def</tt> <br>
1105 :     <tt>&nbsp;&nbsp;&nbsp; name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1106 :     CDATA #REQUIRED</tt> <br>
1107 :     <tt>&nbsp;&nbsp;&nbsp; label&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1108 :     CDATA #REQUIRED</tt> <br>
1109 :     <tt>&gt;</tt> </p>
1110 :    
1111 : celek 1.7 <p>The element and attribute definitions are as follows: </p>
1112 : celek 1.11
1113 : celek 1.7 <ul>
1114 : celek 1.11 <li> &lt;site&gt; - defines the site map</li>
1115 :    
1116 : celek 1.7 <ul>
1117 : celek 1.11 <li> type - optional site type specification. The value refers to a type
1118 :     string registered via the <a href="#Framework">install framework</a> extension
1119 :     point. If not specified, the type is assumed to be the default Eclipse site
1120 :     type (as specified in this document).</li>
1121 :     <li> url - optional URL defining the update site baseline URL (used
1122 :     to determine individual &lt;feature&gt; and &lt;archive&gt; location).&nbsp;
1123 :     Can be relative or absolute. If relative, is relative to site.xml. If not
1124 : celek 1.10 specified, the default is the URL location of the site.xml file.</li>
1125 : celek 1.11
1126 : celek 1.7 </ul>
1127 : celek 1.11 <li> &lt;description&gt; - brief description as simple text. Intended
1128 :     to be translated.</li>
1129 :    
1130 : celek 1.9 <ul>
1131 : celek 1.11 <li> url - optional URL for the full description as HTML. The URL can
1132 :     be specified as absolute of relative. If relative, If relative, is relative
1133 : celek 1.10 to site.xml.</li>
1134 : celek 1.11 <br>
1135 :     Note, that for NL handling the URL value should be separated to allow
1136 :     alternate URLs to be specified for each national language.
1137 :     </ul>
1138 :     <li> &lt;feature&gt; - identifies referenced feature archive</li>
1139 :    
1140 :     <ul>
1141 :     <li> type - optional feature type specification. The value refers to
1142 :     a type string registered via the <a href="#Framework">install framework</a>
1143 :     extension point. If not specified, the type is assumed to be the default
1144 :     feature type for the site. If the site type is the default Eclipse site type,
1145 :     the default feature type is the packaged feature type (as specified in this
1146 :     document).</li>
1147 :     <li> id - optional feature identifier. The information is used as a
1148 :     performance optimization to speed up searches for features. Must match
1149 :     the identifier specified in the feature.xml of the referenced archive (the
1150 :     url attribute). If specified, the version attribute must also be specified.</li>
1151 :     <li> version - optional feature version. The information is used as
1152 :     a performance optimization to speed up searches for features. Must match
1153 :     the version specified in the feature.xml of the referenced archive (the
1154 :     url attribute). If specified, the id attribute must also be specified.</li>
1155 :     <li> url - required URL reference to the feature archive. Can be relative
1156 :     or absolute. If relative, it is relative to the location of the site.xml
1157 :     file. <b>Note</b>: the default site implementation allows features to
1158 :     be accessed without being explicitly declared using a &lt;feature&gt; entry.
1159 :     By default, an undeclared features reference is interpreted as "features/&lt;id&gt;_&lt;version&gt;.jar"</li>
1160 :     <li>label - optional feature label. The value is used for optimization
1161 :     when browsing the site from the update manager. Intended to be translated.<br>
1162 :     </li>
1163 :     <li> os - optional operating system specification. A comma-separated
1164 :     list of os designators defined by Eclipse (see Javadoc for <tt>org.eclipse.core.boot.BootLoader)</tt>
1165 :     . Indicates this feature should only be installed on one of the specified
1166 :     os systems. If this attribute is "*", the feature can be installed on
1167 :     all systems (portable implementation). This information is used as a hint
1168 :     by the installation and update support (user can force installation of feature
1169 : celek 1.10 regardless of this setting).</li>
1170 : celek 1.11 <li> arch - optional machine architecture specification. A comma-separated
1171 :     list of architecture designators defined by Eclipse (see Javadoc for <tt>
1172 :     org.eclipse.core.boot.BootLoader)</tt>. Indicates this feature should only
1173 :     be installed on one of the specified systems. If this attribute&nbsp;is
1174 :     "*", the feature can be installed on all systems (portable implementation).
1175 :     This information is used as a hint by the installation and update support
1176 :     (user can force installation of feature regardless of this setting).</li>
1177 :     <li> ws - optional windowing system specification. A comma-separated
1178 :     list of ws designators defined by Eclipse (see Javadoc for <tt>org.eclipse.core.boot.BootLoader)</tt>
1179 :     . Indicates this feature should only be installed on one of the specified
1180 :     ws systems. If this attribute&nbsp;is "*", the feature can be installed
1181 :     on all systems (portable implementation). This information is used as a
1182 :     hint by the installation and update support (user can force installation
1183 : celek 1.10 of feature regardless of this setting).</li>
1184 : celek 1.11 <li> nl - optional locale specification. A comma-separated list of locale
1185 :     designators defined by Java. Indicates this feature should only be installed
1186 :     on a system running with a compatible locale (using Java locale-matching
1187 :     rules). If this attribute&nbsp;is "*", the feature can be installed on all
1188 :     systems (language-neutral implementation). This information is used as a
1189 :     hint by the installation and update support (user can force installation of
1190 :     feature regardless of this setting).</li>
1191 :     <li>patch - optional specification indicating if this feature is a
1192 :     patch. Default is "false".&nbsp;</li>
1193 :    
1194 :     </ul>
1195 :     <li> &lt;archive&gt; - identifies referenced "storage" archive (the
1196 :     actual files referenced via the <tt>&lt;plugin&gt;</tt> or <tt>&lt;data&gt;</tt>
1197 :     elements in the feature manifest). The site simply manages archives as a
1198 :     path-to-URL map. The default Eclipse site implementation does not require
1199 :     the &lt;archive&gt; section to be included in the site map (site.xml). Any
1200 :     archive reference not explicitly defined as part of an &lt;archive&gt; section
1201 :     is assumed to be mapped to a url in the form "&lt;archivePath&gt;" relative
1202 : celek 1.10 to the location of the site.xml file.</li>
1203 : celek 1.11
1204 : celek 1.7 <ul>
1205 : celek 1.11 <li> path - required archive path identifier. This is a string that is
1206 :     determined by the <a href="#Feature_Archive_Mapping_Id_To_Path">feature</a>
1207 :     referencing this archive and is not otherwise interpreted by the site (other
1208 : celek 1.10 than as a lookup token).</li>
1209 : celek 1.11 <li> url - required URL reference to the archive. Can be relative or
1210 : celek 1.10 absolute. If relative, it is relative to the location of the site.xml file.</li>
1211 : celek 1.11
1212 : celek 1.9 </ul>
1213 : celek 1.11 <li> &lt;category-def&gt; - an optional definition of a category that
1214 :     can be used by installation and update support to hierarchicaly organize
1215 :     features</li>
1216 :    
1217 : celek 1.7 <ul>
1218 : celek 1.11 <li> name - category name. Is specified as a path of name tokens separated
1219 : celek 1.10 by /</li>
1220 : celek 1.11 <li> label - displayable label. Intended to be translated.</li>
1221 :    
1222 : celek 1.7 </ul>
1223 : celek 1.11 <li> &lt;category&gt; - actual category specification for a feature
1224 :     entry</li>
1225 :    
1226 : celek 1.7 <ul>
1227 : celek 1.11 name - category name
1228 : celek 1.7 </ul>
1229 : celek 1.11
1230 : celek 1.7 </ul>
1231 : celek 1.11 Note, that in general the feature.xml&nbsp; manifest documents should
1232 :     specify UTF-8 encoding. For example
1233 : celek 1.7 <p><tt>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</tt> </p>
1234 : celek 1.11
1235 :     <p>Translatable text contained in the site.xml can be separated into site&lt;_locale&gt;.properties
1236 :     files using Java property bundle conventions. Note that the translated
1237 :     strings are used at installation time (ie. do not employ the plug-in fragment
1238 :     runtime mechanism). The property bundles are located relative to the site.xml
1239 :     location. </p>
1240 :    
1241 : celek 1.9 <h3> <a name="Default_Site_Layout"></a> Default Site Layout</h3>
1242 : celek 1.11 <tt>&lt;site root&gt;/</tt> <br>
1243 :     <tt>&nbsp;&nbsp;&nbsp; site.xml</tt> <br>
1244 :     <tt>&nbsp;&nbsp;&nbsp; features/</tt> <br>
1245 :     <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; feature archives&nbsp;&nbsp;
1246 :     (eg. org.eclipse.javatools_1.0.1.jar)</tt> <br>
1247 :     <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;featureId&gt;_&lt;featureVersion&gt;/&nbsp;&nbsp;&nbsp;
1248 :     (optional)</tt> <br>
1249 :     <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1250 : celek 1.10 non-plug-in files for feature</tt> <br>
1251 : celek 1.11 <tt>&nbsp;&nbsp;&nbsp; plugins/</tt> <br>
1252 :     <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; plug-in argives&nbsp;&nbsp;&nbsp;
1253 :     (eg. org.eclipse.ui_1.0.3.jar)</tt>
1254 : celek 1.9 <h3> <a name="Controlling_Access"></a> Controlling Access</h3>
1255 : celek 1.11 The default Eclipse site implementation provides support for http access
1256 :     with basic user authentication (userid and password).
1257 :     <p>Custom access control mechanisms can be added to base Eclipse in one of
1258 : celek 1.10 2 ways: </p>
1259 : celek 1.11
1260 : celek 1.7 <ul>
1261 : celek 1.11 <li> by supplying server-side logic on the update server (eg. implementing
1262 :     servlets that compute the site.xml map, and control access to individual
1263 : celek 1.10 archives based on some user criteria)</li>
1264 : celek 1.11 <li> by supplying a custom concrete implementation of the site object
1265 :     (installed on the client machine, update server specified <tt>&lt;site
1266 :     type=""&gt;</tt> ). The custom concrete site implementation, together with
1267 :     any server-side logic support the required control mechanisms.</li>
1268 :    
1269 : vlad 1.1 </ul>
1270 : celek 1.11 Eclipse provides an example demonstrating an implementation of an access
1271 :     mechanism based on feature key files.
1272 : celek 1.9 <h2> <a name="Eclipse_Install"></a> Eclipse Install</h2>
1273 : celek 1.11
1274 : celek 1.9 <h3> <a name="Default_Install_Layout"></a> Default Install Layout</h3>
1275 : celek 1.11 <tt>&lt;install root&gt;/</tt> <br>
1276 :     <tt>&nbsp;&nbsp;&nbsp; install/</tt> <br>
1277 :     <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; features/</tt> <br>
1278 :     <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1279 : celek 1.10 &lt;featureId&gt;_&lt;version&gt;/</tt> <br>
1280 : celek 1.11 <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1281 :     feature.xml</tt> <br>
1282 :     <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1283 :     other feature files</tt> <br>
1284 :     <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1285 :     META-INF/</tt> <br>
1286 :     <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1287 :     META-INF-ECLIPSE/</tt>
1288 : celek 1.7 <p><tt>&nbsp;&nbsp;&nbsp; plugins/</tt> <br>
1289 : celek 1.11 <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;pluginORfragmentId&gt;_&lt;version&gt;/</tt>
1290 : celek 1.10 <br>
1291 : celek 1.11 <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1292 : celek 1.10 plugin.xml or fragment.xml</tt> <br>
1293 : celek 1.11 <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1294 : celek 1.10 other plugin or fragment files</tt> <br>
1295 : celek 1.11 <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1296 : celek 1.10 META_INF/</tt> </p>
1297 : celek 1.11
1298 :     <p><b>Implementation Note:</b> we will go back to the original design of
1299 :     not splitting out fragments (ie. plugin and fragments go into the same install
1300 : celek 1.10 location) </p>
1301 : celek 1.11
1302 : celek 1.9 <h3> <a name="Unmanaged_Plugins"></a> "Unmanaged" Plug-Ins</h3>
1303 : celek 1.11 Eclipse supports a concept of "unmanaged" plug-ins. These are plug-ins
1304 :     that were directly installed into the Eclipse file tree without being part
1305 :     of a feature (eg. developer unzipping plug-in archive directly into the
1306 :     Eclipse file tree).
1307 :     <p>Eclipse runtime recognizes these plugins during startup and loads the
1308 :     plug-in information into the runtime registry following the standard plug-in
1309 :     binding rules. The update support also recognizes the presence of this new
1310 :     plug-in, but since this plug-in is not part of any feature it cannot be updated
1311 :     using the update support (hence "unmanaged"). Unmanaged plug-in that become
1312 :     referenced by a feature as a result of some future installation or update
1313 :     action become "managed" (can be updated as part of the feature). </p>
1314 :    
1315 :     <p>Unmanaged plug-ins are not displayed as part of the installation and update
1316 : celek 1.10 UI. </p>
1317 : celek 1.11
1318 :     <h3> <a name="Using_Native_Platform_Installers"></a> Using Native Platform
1319 :     Installers</h3>
1320 :     The Eclipse installation contains plugins that can be shared across multiple
1321 :     features. When installing and uninstalling features using the Eclipse installation
1322 :     and update support, these relationship are correctly maintained. Only one
1323 :     copy of any version of a plug-in is used.
1324 :     <p>However, when using native platform installers, performing native uninstall
1325 :     creates problems because plug-ins would be removed without regard to any
1326 :     sharing relationships. As a result, Eclipse <b>does not allow</b> plug-ins
1327 :     to be installed using native installers into the shared installation tree.
1328 :     Instead, native installers must establish their own installation root directory.
1329 :     The subdirectory structure is the same as defined for base Eclipse. The
1330 :     private root directory is logically linked into the shared Eclipse installation
1331 :     via a link file installed by the native installer. The file path for the
1332 :     link file is <tt>&lt;configRoot&gt;/links/</tt>. The <tt>&lt;configRoot&gt;
1333 : celek 1.10 </tt> location is computed by Eclipse relative to the launch <a
1334 : celek 1.11 href="#Multiple%20Launch%20Points"> configuration file</a> . By default,
1335 :     this is the <tt>install/</tt> directory in the shared Eclipse installation
1336 :     tree. </p>
1337 :    
1338 :     <p>The name of the link file is not specified by Eclipse. The name is determined
1339 :     by the native installer. To minimize the potential for naming collisions,
1340 :     it is recommended that the file name contain the identifier and version
1341 :     of the feature being installed by the native installer. For example, <tt>&lt;featureId&gt;_&lt;featureVersion&gt;.properties</tt>
1342 :     . The file content is in the form of a Java properties file, with the following
1343 :     properties defined: </p>
1344 :    
1345 : celek 1.7 <p><tt>path=[r|rw] install-path[,[r|rw] install-path]*</tt> </p>
1346 : celek 1.11
1347 :     <p>The property <tt>path</tt> is a comma-separated list of optionally annotated
1348 :     install paths. The property value <tt>install-path</tt> is a full file
1349 :     path to the installation directory root, specified in local OS format. The
1350 :     optional annotation <tt>r</tt> or <tt>rw</tt> indicates whether Eclipse
1351 :     update support should allow the specified location to be used for updates.
1352 :     Default is to allow updates&nbsp; (w). </p>
1353 :    
1354 :     <p>Eclipse does not manage the linked directories in any way. It simply detects
1355 :     their existence by the presence of the link files, and includes the linked
1356 :     plug-ins during the platform startup. The native installer is responsible
1357 :     for uninstalling the link when the corresponding directory is removed. Eclipse
1358 : celek 1.10 runtime ignores any links that cannot be resolved. <br>
1359 : celek 1.11 &nbsp; </p>
1360 :     <br>
1361 : celek 1.10 <br>
1362 : celek 1.9 <br>
1363 : vlad 1.1 </body>
1364 :     </html>