Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Tycho/p2iu.xml

< Tycho
Revision as of 23:01, 25 February 2015 by Unnamed Poltroon (Talk) (Created page with "The p2iu.xml file can be used to author IUs directly in XML in a format close to the one used by p2. It advangeously replaces the p2.inf that always forced you to author compl...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The p2iu.xml file can be used to author IUs directly in XML in a format close to the one used by p2. It advangeously replaces the p2.inf that always forced you to author complete IUs in a properties file. As such it makes it easier to author IUs that deliver any file, deliver configurations, or use advanced functionalities of patches.

The simplest p2iu.xml file that can be written is the following. Of course such a file does not do much but it shows the main required tags

<?xml version='1.0' encoding='UTF-8'?> <unit id='org.tycho.demo.rootfiles' version='1.0.0' singleton='false'/>

In addition to the identification done through the id and version tags, a p2iu.xml has 4 main sections: - capabilities, which give the opportunity to the iu to describe the capabilities it provides - requires, which allow for the IU to express requirements on other IUs. - touchpoint, which allow to control which actions should be executed at different phases of the installation / uninstallation process Other sections such as update, properties, meta-requirements, that you usually find in normal p2 ius are also supported.

Back to the top