Running workflow for several languages [message #683984] |
Tue, 14 June 2011 19:51 |
Rafael Angarita Messages: 94 Registered: November 2010 |
Member |
|
|
Hello guys,
I'm curious about how do you do to run a workflow for several languages. Some of those languages depend on one or more language that I want to generate in the same workflow. When I say that a language depends on another, I mean it imports the other language:
import "platform:/resource/org.xtext.altagracia/src-gen/org/xtext/altagracia/Domain.ecore" as domainAG
Now, at first the "src-gen" directory is empty, so the file "src-gen/org/xtext/altagracia/Domain.ecore" does not exist and therefore, the .xtext source gives the error "Couldn't resolve reference to EPackage ...".
Because of it, I'm not able to run the workflow with all my language the first time, when the src-gen directory is empty.
I have all the languages inside the Generator component of the workflow:
component = Generator {
pathRtProject = runtimeProject
pathUiProject = "${runtimeProject}.ui"
projectNameRt = projectName
projectNameUi = "${projectName}.ui"
language = {
....
}
language = {
....
}
For now, I just have several workflows, some of them to generate only the languages on which other languages depend, but this approach is getting slow and makes me write redundant code within the .mwe2 files.
I was wondering if there is a better way of doing this.
Thank you very much for your help!
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04666 seconds