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