| load xtext dsl during ant build [message #1865172] |
Sat, 27 April 2024 11:47  |
Eclipse User |
|
|
|
Hi,
I'm want to create a DSL with xtext and transform it with eclipse epsilon, but i'm running into problems. I have done the following:
I have created the default xtext project, I can then start a runtime eclipse environment, create a file with the DSL (and correct extension) and finally run successfully EOL scripts on that file. That file is then loaded as an EMF model. This I can get to work.
Now I want to do the same but then within ANT. So I created ant that I could run from the command line, outside of eclipse: ie. https://eclipse.dev/epsilon/doc/articles/running-epsilon-ant-tasks-from-command-line
This will run. I then added the jar and called the doSetup with epsilon.java.executeStaticMethod task. from the setup i don't get any error, but from loading the dsl file I get the following error:
java.lang.NoSuchFieldError: Class org.antlr.runtime.Token does not have member field 'org.antlr.runtime.Token EOF_TOKEN' xtext
There is indeed no EOF_TOKEN in org.antlr.runtime.Token (atleast for ANTLR version 3.5.2, which epsilon 2.5 is using), there is an EOF.
After some research in maven repositories I see that xtext runtime 2.34.0 is depending on ANTLR 3.2, while epsilon 2.5 is depending on 3.5.2.
Does anyone have an solution for this problem?
I also don't get why it seems to work within eclipse, but outside in an ant file I get the error.
With Kind regards,
Michiel Fortuin
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05350 seconds