Skip to main content



      Home
Home » Modeling » TMF (Xtext) » How to remove the xtext update site in RCP app
How to remove the xtext update site in RCP app [message #1097374] Thu, 29 August 2013 12:14 Go to next message
Eclipse UserFriend
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 04:08 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: How to remove the xtext update site in RCP app [message #1277133 is a reply to message #1099794] Tue, 25 March 2014 10:48 Go to previous messageGo to next message
Eclipse UserFriend
Hello Dennis,

this does not work in all cases (seems to be a matter of execution order). do you have any other ideas?

Thanks, Christian
Re: How to remove the xtext update site in RCP app [message #1277641 is a reply to message #1277133] Wed, 26 March 2014 05:11 Go to previous messageGo to next message
Eclipse UserFriend
If your RCP feature depends on Xtext, there can be only one installation order, or what do you mean with execution order?
Re: How to remove the xtext update site in RCP app [message #1277694 is a reply to message #1277641] Wed, 26 March 2014 06:29 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

i have no idea how eclipse analyzes the touchpoints. thus it may depend on the order of the information beeing analyzed.
the addRepositository we do in the same p2.inf like the removeRepository work.
the p2.inf is besides the product file.
we build with Maven Tycho 0.20.0

~Christian
Re: How to remove the xtext update site in RCP app [message #1277711 is a reply to message #1277694] Wed, 26 March 2014 07:03 Go to previous messageGo to next message
Eclipse UserFriend
I also know only what described in the eclipse help, and it works like described in previous comments using buckminster or PDE

http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fp2_actions_touchpoints.html

Tycho should handle this in the same order, it use p2 to create products.
What you can try is to put your p2.inf in a bundle (META-INF/p2.inf) where you are sure, it is logically installed/configured at the most last moment. Also p2 tracing may help to figure out what exactly happens during the tycho product build.
Re: How to remove the xtext update site in RCP app [message #1686778 is a reply to message #1277711] Thu, 19 March 2015 06:47 Go to previous messageGo to next message
Eclipse UserFriend
Hi, I have the same problem. Did you find any solution ?
Re: How to remove the xtext update site in RCP app [message #1686821 is a reply to message #1686778] Thu, 19 March 2015 07:13 Go to previous message
Eclipse UserFriend
Did you try to file a bug with an example against tycho?
Previous Topic:Creating xtext-language project built by Maven3
Next Topic:CrossReferences [..|STRING] and AutoEditing is not nice
Goto Forum:
  


Current Time: Sun Jul 27 16:27:28 EDT 2025

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

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

Back to the top