Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » referencing other xtext files in standalone execution of IGenerator
referencing other xtext files in standalone execution of IGenerator [message #803564] Tue, 21 February 2012 14:09 Go to next message
Thomas Hergenröder is currently offline Thomas HergenröderFriend
Messages: 22
Registered: February 2012
Junior Member
We have created a xtext-dsl that generates JAVA (source-)code.
Our XText-Plugins for this dsl are distributed in the development-team and works fine.

To use our dsl in a project we need a way to generate the Java-Artifacts from the DSL-Modelfile via Maven-Build (we don't want to change the XText-DSL-Plugin-development to Maven).

Right now we have to commit the via Eclipse generated files to SVN.

This way works mostly:
zarnekow.blogspot.com/2010/06/how-to-deploy-xtext-standalone.html

But we have some profile information, in a dsl file on the classpath which is not used when compiling the other files.

Everything works fine if used in eclipse itself.
But not in the maven build.

We have tried to parse the profile information first, but that did not help.

Any help would be appreciated.
Re: referencing other xtext files in standalone execution of IGenerator [message #803843 is a reply to message #803564] Tue, 21 February 2012 22:21 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13468
Registered: July 2009
Senior Member
Hi,

how do you read the model file? do you use the org.eclipse.xtext.mwe.Reader workflow component? if yes do you use it with the UseJavaClassPath option set to true

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
icon14.gif  Re: referencing other xtext files in standalone execution of IGenerator [message #805018 is a reply to message #803843] Thu, 23 February 2012 08:52 Go to previous message
Thomas Hergenröder is currently offline Thomas HergenröderFriend
Messages: 22
Registered: February 2012
Junior Member
Before we did not use org.eclipse.xtext.mwe.Reader.
Now we do - with UseJavaClassPath.

And it works!

Thank you for your help.
Previous Topic:Editor -> Compiler
Next Topic:Integration with GMF Editor
Goto Forum:
  


Current Time: Sun May 31 01:53:46 GMT 2020

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

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

Back to the top