Extend Eclipse p2 framework              capabilities: Add your custom installation steps<br />Bucharest Eclipse Demo Camp...
What is p2?<br />Equinox p2 is a comprehensive provisioning platform for delivering and managing RCP applications, tools, ...
Why p2 for CodeWarrior updates?<br />Custom  Functionality added by<br />Freescale  Features<br />Manage your complete ins...
Integration with Eclipse based CodeWarrior<br />Implemented as plugin-in (com.freescale.updater.customActions) for the Ecl...
Integration with stock/vanilla Eclipse<br />Stand alone plugin-in (Freescale Branding)<br />
Custom p2 touchpoint with specific actions<br />
Eclipse Extensions – org.eclipse.equinox.p2.engine.actions<br /><extension<br />point="org.eclipse.equinox.p2.engine.actio...
freescaleinstall – provides ‘Multi User Install’ capability<br />There are three different locations that are important in...
configuration area - the location where Eclipse stores essential runtime metadata (such as information about the set of pl...
instance area - the location where user files are stored, commonly called the workspace. It is optional, however most Ecli...
Upcoming SlideShare
Loading in …5
×

Extend Eclipse p2 framework capabilities: Add your custom installation steps

1,757 views

Published on

Extend Eclipse p2 framework capabilities: Add your custom installation steps

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,757
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Extend Eclipse p2 framework capabilities: Add your custom installation steps

  1. 1. Extend Eclipse p2 framework capabilities: Add your custom installation steps<br />Bucharest Eclipse Demo Camp – 2011<br />DragosMihailescu (Dragos.Mihailescu@freescale.com)<br />Updated June 2011<br />
  2. 2. What is p2?<br />Equinox p2 is a comprehensive provisioning platform for delivering and managing RCP applications, tools, servers and embedded systems.<br /> Using integrated multi-threaded download, bundle pooling and state-of-the-art constraint resolution technology, p2 gives you one-stop-shopping for defining, installing and managing complex software systems<br />
  3. 3. Why p2 for CodeWarrior updates?<br />Custom Functionality added by<br />Freescale Features<br />Manage your complete install (p2 has deep knowledge of how Eclipse works and gives you full control of all aspects of your Eclipse install from program and VM arguments to start-levels to bundle configuration)<br />Avoid runtime surprises (p2 knows exactly what you are and will be running)<br />Install more than just bundles (p2's extensible touchpoint mechanism adapts by using platform-specific code to interact with runtimes and install components)<br />Pool your resources (p2's bundle pooling will save disk space, download time and bandwidth)<br />One integrated solution for both Windows & Linux platforms<br />
  4. 4. Integration with Eclipse based CodeWarrior<br />Implemented as plugin-in (com.freescale.updater.customActions) for the Eclipse based CodeWarrior.<br />
  5. 5. Integration with stock/vanilla Eclipse<br />Stand alone plugin-in (Freescale Branding)<br />
  6. 6. Custom p2 touchpoint with specific actions<br />
  7. 7. Eclipse Extensions – org.eclipse.equinox.p2.engine.actions<br /><extension<br />point="org.eclipse.equinox.p2.engine.actions"><br /> <action<br /> class="com.freescale.updater.customactions.actions.FreescaleInstall“<br /> name="com.freescale.updater.customActions.freescaleinstall“<br /> version="1.0.0"><br /> </action><br /></extension><br /> Each CodeWarrior update will be a new feature which will contain all the required files for a Service Pack or Patch – all compressed into an artifact. All actions regarding an update is controlled by a p2.inf file which contains a full description including the dependencies, specific action for each p2 phase (collect, configure, install, uninstall, un-configure) if needed and touchpoint id:<br />One can see below a custom ‘p2.inf’ file snapshot enabling ‘freescaleinstall’ custom action:<br /> units.0.touchpoint.id=com.freescale.updater.touchpoint<br /> units.0.touchpoint.version=1.0.0<br /> units.0.instructions.install=<br />freescaleinstall(source:@artifact,target:${installFolder}/../,overwrite:true);<br /> units.0.instructions.install.import=<br />com.freescale.updater.customActions.freescaleinstall<br />
  8. 8. freescaleinstall – provides ‘Multi User Install’ capability<br />There are three different locations that are important in the context of deploying Eclipse in a MUI setup:<br /><ul><li>install area - the location where the Eclipse Platform is installed. This location can be read-only, since neither the Eclipse runtime nor plug-ins are supposed to write there. However, in a single user scenario, the configuration area, which is typically writable, defaults to a directory called "configuration" stored under the install area.
  9. 9. configuration area - the location where Eclipse stores essential runtime metadata (such as information about the set of plug-ins installed and the dependencies between them) and cached data in general. Eclipse cannot run without a configuration area. Plug-ins may choose to store data here that should be available regardless the workspace in use (for instance, help index files). User settings shared across workspaces are also stored under this location.
  10. 10. instance area - the location where user files are stored, commonly called the workspace. It is optional, however most Eclipse-based products require an instance area to work. The instance area cannot be shared, although a single user might maintain multiple instance areas. Inside the instance area there is a special directory called .metadata, where plug-ins store their own workspace-specific metadata and user settings. </li></ul>Regarding [Linux / Windows Vista & 7], one can install the [PEx] test folder in:<br />- .../eclipse<br />                 - configuration<br />                 - features<br />                 - plugins<br />                 - (...)<br />                 - [PEx]<br />(ROOT/Administrator)<br />- <user-home-dir>/.eclipse/<product-id>_<product-vers><br />                    - configuration<br />                    - features<br />                    - plugins<br />                    - (...)<br />                    - [PEx]<br />(User access rights)<br />
  11. 11. FSL Custom Actions Updater – one step further<br />Continue to extend p2 updater functionality – manage external eclipse files<br />Uninstall for external eclipse files<br />Adopt new p2 Indigo engine – synchronize with Eclipse major releases<br />Contribute to p2 community<br />

×