• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Extend Eclipse p2 framework capabilities: Add your custom installation steps
 

Extend Eclipse p2 framework capabilities: Add your custom installation steps

on

  • 1,615 views

Extend Eclipse p2 framework capabilities: Add your custom installation steps

Extend Eclipse p2 framework capabilities: Add your custom installation steps

Statistics

Views

Total Views
1,615
Views on SlideShare
1,614
Embed Views
1

Actions

Likes
0
Downloads
0
Comments
0

1 Embed 1

http://www.slideshare.net 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Extend Eclipse p2 framework capabilities: Add your custom installation steps Extend Eclipse p2 framework capabilities: Add your custom installation steps Presentation Transcript

    • Extend Eclipse p2 framework capabilities: Add your custom installation steps
      Bucharest Eclipse Demo Camp – 2011
      DragosMihailescu (Dragos.Mihailescu@freescale.com)
      Updated June 2011
    • What is p2?
      Equinox p2 is a comprehensive provisioning platform for delivering and managing RCP applications, tools, servers and embedded systems.
      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
    • Why p2 for CodeWarrior updates?
      Custom Functionality added by
      Freescale Features
      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)
      Avoid runtime surprises (p2 knows exactly what you are and will be running)
      Install more than just bundles (p2's extensible touchpoint mechanism adapts by using platform-specific code to interact with runtimes and install components)
      Pool your resources (p2's bundle pooling will save disk space, download time and bandwidth)
      One integrated solution for both Windows & Linux platforms
    • Integration with Eclipse based CodeWarrior
      Implemented as plugin-in (com.freescale.updater.customActions) for the Eclipse based CodeWarrior.
    • Integration with stock/vanilla Eclipse
      Stand alone plugin-in (Freescale Branding)
    • Custom p2 touchpoint with specific actions
    • Eclipse Extensions – org.eclipse.equinox.p2.engine.actions
      <extension
      point="org.eclipse.equinox.p2.engine.actions">
      <action
      class="com.freescale.updater.customactions.actions.FreescaleInstall“
      name="com.freescale.updater.customActions.freescaleinstall“
      version="1.0.0">
      </action>
      </extension>
      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:
      One can see below a custom ‘p2.inf’ file snapshot enabling ‘freescaleinstall’ custom action:
      units.0.touchpoint.id=com.freescale.updater.touchpoint
      units.0.touchpoint.version=1.0.0
      units.0.instructions.install=
      freescaleinstall(source:@artifact,target:${installFolder}/../,overwrite:true);
      units.0.instructions.install.import=
      com.freescale.updater.customActions.freescaleinstall
    • freescaleinstall – provides ‘Multi User Install’ capability
      There are three different locations that are important in the context of deploying Eclipse in a MUI setup:
      • 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.
      • 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.
      • 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.
      Regarding [Linux / Windows Vista & 7], one can install the [PEx] test folder in:
      - .../eclipse
                       - configuration
                       - features
                       - plugins
                       - (...)
                       - [PEx]
      (ROOT/Administrator)
      - <user-home-dir>/.eclipse/<product-id>_<product-vers>
                          - configuration
                          - features
                          - plugins
                          - (...)
                          - [PEx]
      (User access rights)
    • FSL Custom Actions Updater – one step further
      Continue to extend p2 updater functionality – manage external eclipse files
      Uninstall for external eclipse files
      Adopt new p2 Indigo engine – synchronize with Eclipse major releases
      Contribute to p2 community