How to remove the xtext update site in RCP app [message #1097374] |
Thu, 29 August 2013 16:14 |
Yann Andenmatten Messages: 2 Registered: February 2012 |
Junior Member |
|
|
Hi,
We are building a RCP app with multiple DSLs. Our application rely on p2 to download update of the application.
Unfortunately xtext plugins which are obviously added to our product, contribute to the available software sites by adding Xtext All In One - Releases update site. This is done in org.eclipse.xtext-2.4.1\features\org.eclipse.xtext.runtime.feature\p2.inf:
instructions.configure=org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(location:http${#58}//download.eclipse.org/ modeling/tmf/xtext/updates/composite/releases/,type:0,name:Xtext All In One - Releases,enabled:true); \
org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(location:http${#58}//download.eclipse.org/ modeling/tmf/xtext/updates/composite/releases/,type:1,name:Xtext All In One - Releases,enabled:true);
That means when the user launch a check for update, it will also check if xtext update are available.
So my question is more a p2 related issue: how can we remove this contribution (or how to disable it) ?
What I've tried so far was add instruction in some p2.inf of our plugin to remove the xtext contribution, like
instructions.configure=\
removeRepository(location:http${#58}//download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/,type:0);\
removeRepository(location:http${#58}//download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/,type:1);
but it doesn't work...
Thanks for your help,
Yann
PS: A workaround could be to fix the "Maximum version" of our dependency to xtext.
|
|
|
Re: How to remove the xtext update site in RCP app [message #1099794 is a reply to message #1097374] |
Mon, 02 September 2013 08:08 |
|
Try
instructions.configure=org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(location:http${#58}//download.eclipse.org/ modeling/tmf/xtext/updates/composite/releases/,type:0,name:Xtext All In One - Releases,enabled:false); \
org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(location:http${#58}//download.eclipse.org/ modeling/tmf/xtext/updates/composite/releases/,type:1,name:Xtext All In One - Releases,enabled:false);
Or...
instructions.configure=\
org.eclipse.equinox.p2.touchpoint.eclipse.removeRepository(type:0,location:http${#58}//download.eclipse.org/ modeling/tmf/xtext/updates/composite/releases/);\
org.eclipse.equinox.p2.touchpoint.eclipse.removeRepository(type:1,location:http${#58}//download.eclipse.org/ modeling/tmf/xtext/updates/composite/releases/);
For more info see:
http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fp2_actions_touchpoints.html
+Dennis Huebner
Get professional support from the Xtext committers at www.typefox.io
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03397 seconds