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