Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

P2 Install Example

Revision as of 16:36, 23 July 2008 by Jeff.Hamm.sas.com (Talk | contribs) (Exporting)

Set up P2 Eclipse Environment

  • Get p2 from CVS
  • Create RCP Application

From Eclipse, File->New->Other Select Plug-in Project Specify a project name () Click Next Select Yes for Create a Rich Client Application Click Next Choose RCP Application with a View

This will create a MAINFEST.MF file

  • test application from MANIFEST.MF file.

Edit the file. Overview tab, click LAunch an Eclipe application. Verify that the application runs.

Set up Product Configuration

  • create product configuration

From Eclipe, select the plugin project and then File-New->Product Configuration Specify a filename (we used blah)

This will display the blah.product edit page.

  • specify product definition

Enter a name. For the id, select New button. From dialog, click Ok. Enter a version (1.0.0 works)

  • specify configuration

From Configuration tab, click add. In Add dialog, right click and select all. Click Ok. This will add the bundles necessary to run the app. Save the blah.product file (ctrl-s)

From Overview tab, select

  • synchronize
  • launch eclipse application

Exporting

  • Eclipse Product export wizard.

From the blah.product, select export wizard from Export column tab area. Specify a destination directory Check Generate Metadata repository checkbox. Click finish.

This will generate a local metatadata and artifact repository in the specified destination directory.

Running ProvAdminUI

specify metadata repository specify artifact repository specify profile drag and drop application to profile

Run the application we created

  • Browse to the profile directory
  • run eclipse application.

Use the Installer

  • create a run configuration
  • point to the destination directory of the product export
  • point to the profile
  • run application
  • select an install directory location
  • click Install

Back to the top