Skip to main content



      Home
Home » Modeling » TMF (Xtext) » IJvmModelInferrer and Generation of Java files outside of Eclipse model project
IJvmModelInferrer and Generation of Java files outside of Eclipse model project [message #893990] Fri, 06 July 2012 06:55 Go to next message
Eclipse UserFriend
My language is based on Xbase grammar and is similar to the Xtext domainmodel example.
I use an IJvmModelInferrer to generate two kinds of Java classes from the model:
* Java interface classes for entities
* and classes implementing these interfaces

Alle generated files are written by EclipseResourceFileSystemAccess2 to src-gen folder in the same Eclipse project (the project with the model file).

Is it possible to generate files to different Eclipse projects or even to a pre-configured file system locations outside of Eclipse workspace?

The following project structure is desired:


  • model-project/src/model.dsl
  • api-project/src-gen/x/y/z/Entity.java
  • impl-project/src-gen/x/y/z/EntityImpl.java

[Updated on: Fri, 06 July 2012 06:57] by Moderator

Re: Jvm [message #894015 is a reply to message #893990] Fri, 06 July 2012 08:04 Go to previous message
Eclipse UserFriend
hi you would have to customize JvmModelGenerator to use different outlets + a custom IOutputConfigurationProvider to provide these different outlets

~Christian
--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de

[Updated on: Fri, 06 July 2012 08:49] by Moderator

Previous Topic:Reference to external project
Next Topic:XMLBeautifier uses wrong line separator
Goto Forum:
  


Current Time: Mon Jun 30 23:50:35 EDT 2025

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

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

Back to the top