Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 previous message
Maxim Frolov is currently offline Maxim Frolov
Messages: 2
Registered: January 2012
Location: Aachen, Germany
Junior Member
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]

Report message to a moderator

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


Current Time: Fri May 24 11:44:14 EDT 2013

Powered by FUDForum. Page generated in 0.01657 seconds