Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 16:14 Go to next message
Yann Andenmatten is currently offline Yann AndenmattenFriend
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 Go to previous messageGo to next message
Dennis Huebner is currently offline Dennis HuebnerFriend
Messages: 257
Registered: July 2009
Senior Member

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
Re: How to remove the xtext update site in RCP app [message #1277133 is a reply to message #1099794] Tue, 25 March 2014 14:48 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13879
Registered: July 2009
Senior Member
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


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to remove the xtext update site in RCP app [message #1277641 is a reply to message #1277133] Wed, 26 March 2014 09:11 Go to previous messageGo to next message
Dennis Huebner is currently offline Dennis HuebnerFriend
Messages: 257
Registered: July 2009
Senior Member

If your RCP feature depends on Xtext, there can be only one installation order, or what do you mean with execution order?



+Dennis Huebner

Get professional support from the Xtext committers at www.typefox.io
Re: How to remove the xtext update site in RCP app [message #1277694 is a reply to message #1277641] Wed, 26 March 2014 10:29 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13879
Registered: July 2009
Senior Member
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


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to remove the xtext update site in RCP app [message #1277711 is a reply to message #1277694] Wed, 26 March 2014 11:03 Go to previous messageGo to next message
Dennis Huebner is currently offline Dennis HuebnerFriend
Messages: 257
Registered: July 2009
Senior Member

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.



+Dennis Huebner

Get professional support from the Xtext committers at www.typefox.io
Re: How to remove the xtext update site in RCP app [message #1686778 is a reply to message #1277711] Thu, 19 March 2015 10:47 Go to previous messageGo to next message
Marco mvmsoft is currently offline Marco mvmsoftFriend
Messages: 14
Registered: July 2009
Location: Germany
Junior Member
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 11:13 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13879
Registered: July 2009
Senior Member
Did you try to file a bug with an example against tycho?

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Creating xtext-language project built by Maven3
Next Topic:CrossReferences [..|STRING] and AutoEditing is not nice
Goto Forum:
  


Current Time: Mon Apr 12 17:18:19 GMT 2021

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

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

Back to the top