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.
Difference between revisions of "P2 Install Example"
m (→Set up P2 Eclipse Environment) |
(→Set up Product Configuration) |
||
Line 21: | Line 21: | ||
*create 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 | *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 | *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 | *synchronize | ||
*launch eclipse application | *launch eclipse application |
Revision as of 16:33, 23 July 2008
Contents
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.
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