Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Generated ecore models refer to Xbase using relative paths
Generated ecore models refer to Xbase using relative paths [message #1016175] Tue, 05 March 2013 06:00 Go to next message
Zoltan Ujhelyi is currently offline Zoltan Ujhelyi
Messages: 107
Registered: July 2009
Senior Member
Hi,

the EMF-IncQuery project recently received a bug report (https://bugs.eclipse.org/bugs/show_bug.cgi?id=401552) that the generated ecore models contain references with strange relative paths such as the following:

eType="ecore:EClass ../../../../../../../org.eclipse.xtext.xbase/model/Xbase.ecore#//XExpression"


All examples contain references to referenced Xbase elements. I have experimented with various mwe settings as suggested in various forum posts, but could not find a way to replace those relative urls with absolute ones.

Is there a way I missed to generate the ecore models with either platform:/plugin style url (I know about the Eclipse platform dependency that way) or EPackage nsUri based urls, or I have to replace the EMF model with a manually created one?

Thanks,
Zoltán
Re: Generated ecore models refer to Xbase using relative paths [message #1044855 is a reply to message #1016175] Fri, 19 April 2013 08:22 Go to previous messageGo to next message
Carlo M-R is currently offline Carlo M-R
Messages: 5
Registered: June 2011
Junior Member
Hi,

i'm facing the similar problem when moving one of our dsls into a totally different folder structure it seems to fail due to these relatives pathes found in the .ecore files.

Did you find any hint/solution on how to replace these pathes?


Greets,
Carlo
Re: Generated ecore models refer to Xbase using relative paths [message #1044972 is a reply to message #1044855] Fri, 19 April 2013 11:22 Go to previous messageGo to next message
Zoltan Ujhelyi is currently offline Zoltan Ujhelyi
Messages: 107
Registered: July 2009
Senior Member
Hi,

Sadly, I have really no idea how to solve this. I am thinking about customizing the workflow, but I have no idea if it is possible to register e.g. an EMF URIHandler to the Xtext generator process.

If I have a solution, I will post it here, but nothing tangible yet.

Cheers,
Zoltán
Re: Generated ecore models refer to Xbase using relative paths [message #1049989 is a reply to message #1044972] Fri, 26 April 2013 10:54 Go to previous message
Carlo M-R is currently offline Carlo M-R
Messages: 5
Registered: June 2011
Junior Member
Hi,

i added an URI Mapping to the mwe-Workflow of the using project

uriMap = {
from ="../../../../../../../../"
to = "platform:/resource/"
}

This seems to do the trick.

Greets,
Carlo
Previous Topic:Xtext 2.4 scoping
Next Topic:Enumeration error (Importing from existing ecore)
Goto Forum:
  


Current Time: Wed Jun 19 14:24:14 EDT 2013

Powered by FUDForum. Page generated in 0.07859 seconds