Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Problem with feature patch
Problem with feature patch [message #787578] Tue, 31 January 2012 18:48
Nikolay Kasyanov is currently offline Nikolay KasyanovFriend
Messages: 30
Registered: September 2010
Location: Russia

I'm trying to use feature patch to replace a plugin with fixed version (I need to mess with this because fix not backported to stable version, so I did it myself).

Feature I wanted to patch: org.eclipse.emf.codegen.ecore, version=2.7.0.v20110913-1156. This feature includes plugin org.eclipse.emf.codegen.ecore, version=2.7.0.v20110913-1156

I created feature patch for org.eclipse.emf.codegen.ecore feature, called it ru.agentlab.emf.codegen.ecore.patch, added modified plugin org.eclipse.emf.codegen.ecore (with version updated to 2.7.0.v20120131).

Feature patch exported & installed with no errors, but target plugin doesn't updated.

There is not so much documentation about feature patches, I used this manual as reference, but it's for 3.5.

Interestingly, feature patch works ok with target platform definitions.

Here is feature.xml of my patch:
<?xml version="1.0" encoding="UTF-8"?>
      label="EMF Codegen Patch"

   <description url="">
      [Enter Feature Description here.]

   <copyright url="">
      [Enter Copyright Description here.]

   <license url="">
      [Enter License Description here.]

      <import feature="org.eclipse.emf.codegen.ecore" version="2.7.0.v20110913-1156" patch="true"/>
      <import plugin="org.eclipse.core.runtime" version="3.7.0" match="compatible"/>
      <import plugin="org.eclipse.core.resources" version="3.7.0" match="compatible"/>
      <import plugin="org.eclipse.jdt.core" version="3.7.0" match="compatible"/>
      <import plugin="org.eclipse.jdt.launching" version="3.6.0" match="compatible"/>
      <import plugin="org.eclipse.emf.ecore" version="2.7.0" match="compatible"/>
      <import plugin="org.eclipse.emf.codegen" version="2.6.0" match="compatible"/>
      <import plugin="org.eclipse.emf.ecore.xmi" version="2.7.0" match="compatible"/>
      <import plugin="org.eclipse.text" version="3.5.0" match="compatible"/>



I'm using Eclipse 3.7.1
Previous Topic:Execute SQL
Next Topic:OSGI Service Problem after update a feature
Goto Forum:

Current Time: Wed Jun 20 19:14:05 GMT 2018

Powered by FUDForum. Page generated in 0.01436 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top