Xtext index and referenced JARs [message #689406] |
Mon, 27 June 2011 15:30 |
Victor Noël Messages: 112 Registered: June 2010 |
Senior Member |
|
|
Hi,
I created a DSL using xtext, let say for files named *.mydsl.
In particular, I exploit references in my dsl, so that if I have two ressources a.mydsl and b.mydsl, I can refer in b to elements declared in a.
If I put these two resources in two eclipse project, and one refers to the other, everything is fine.
But if I export one in jar and add it as a dependency of the second, it does not work. It is as if the resource is not taken into account.
I suspect it is linked to the index, but I don't know at all where to watch or what to change to make it works!
|
|
|
|
|
Re: Xtext index and referenced JARs [message #689539 is a reply to message #689439] |
Mon, 27 June 2011 19:34 |
|
Hi,
which Xtext Version do you use? How do you export one in jar and add it as a dependency of the second?
I tried this with Xtext 1.0.2 and 2.0.0 and it works nicely.
Here is the classpath file of my test project
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="lib" path="test.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
~Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
Powered by
FUDForum. Page generated in 0.04533 seconds