|
|
|
Re: using a model form another project [message #659491 is a reply to message #659466] |
Mon, 14 March 2011 09:33 |
Martin Trummer Messages: 15 Registered: February 2011 |
Junior Member |
|
|
Hi,
thanks for the answers so far, but I see that my question was not clear enough:
I have these xtext projects:
then I have 2 application projects with models, say:
- common:
/src/main/xtext/model/common.dsl
- server:
/src/main/xtext/model/server.dsl
the server.dsl imports common.dsl
In the server project I also have a workflow and I need to tell the reader in this workflow to read all *.dsl files in any model diretories, i.e. the server.dsl file in the server project and the common.dsl file that will be available in the jar file of the common project.
I guess this is a very common project setup.
When I simply set useJavaClassPath=true of the Reader, it works - but as already mentioned causes severe eclipse problems - so I cannot use it.
Maybe if there's a way to suppress the output of the classpath to the console, it would be a workaround - But I don't know how to configure this.
@Alexander
I was browsing the source code and it was quite clear to me, that the Reader does not work. I also noticed that there's an UriBasedReader, but since I'm a newbie I have no idea how to use it and I cannot find any examples: thus, I hoped that someone could easily answer the question (e.g. use the UriBasedReader with "uri = "classpath://common.jar!model/*.dls")
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03086 seconds