Skip to main content



      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 09:09 Go to next message
Eclipse UserFriend
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 17:21 Go to previous messageGo to next message
Eclipse UserFriend
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
icon14.gif  Re: referencing other xtext files in standalone execution of IGenerator [message #805018 is a reply to message #803843] Thu, 23 February 2012 03:52 Go to previous message
Eclipse UserFriend
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: Thu Jul 03 20:42:11 EDT 2025

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

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

Back to the top