Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[p2-dev] Problems updating feature in RCP

Hi p2ers,

I have been struggling to make my RCP-application updatable with P2 and got stuck on following problem:

I made an RCP product based on configurations (org.eclipse.platform, org.eclipse.rcp and my own feature) and ran following command to generate the p2 profile:
eclipse -nosplash \
-application org.eclipse.equinox.p2.director.app.application \
-metadataRepository ${UPDATE_LOCATION} \
-artifactRepository ${UPDATE_LOCATION} \
-installIU com.sigasi.hdt.rcp.feature.feature.group \
-destination ${INSTALL_DIR} \
-profile HDTProfile \
-vmArgs \
  -Declipse.p2.data.area=${INSTALL_DIR}/p2
with UPDATE_LOCATION the location of my P2 repository
and INSTALL_DIR the directory where my RCP was build

When I start an update inside my RCP, my plugin-jars are downloaded to the p2/org.eclipse.equinox.p2.touchpoint.eclipse/plugins/ directory but not to the main plugins directory. So while the update UI displays that the feature is updated, the new plugins are not loaded because the old jars are still in the plugins directory.

How should I resolve this issue?

Kind regards,
Hendrik.





Back to the top