|
|
Re: [XPand2] Unknown type 'ecore::EClass' [message #662875 is a reply to message #662869] |
Fri, 01 April 2011 10:52 |
Christopher Gerking Messages: 117 Registered: April 2011 |
Senior Member |
|
|
I am currently using an MWE2 workflow file.
module xyz.generator
import org.eclipse.xtend.typesystem.emf.*
import org.eclipse.emf.mwe.utils.*
import org.eclipse.xpand2.*
var projectName = "my.generation"
var sourceFolder = "platform:/resource/${projectName}/src"
var sourceGenFolder = "../${projectName}/src-gen"
var xyzPackage = "xyz.XyzPackage"
var model = "${sourceFolder}/My.xyz"
Workflow {
bean = StandaloneSetup {
platformUri = ".."
}
bean = EmfMetaModel : mm_emf {
metaModelPackage = "${xyzPackage}"
}
component = Reader {
uri = "${model}"
modelSlot = "model"
}
component = Generator {
metaModel = mm_emf
expand = "template::mydomain::main FOR model"
outlet = {
path = "${sourceGenFolder}"
append = true
}
fileEncoding = "UTF8"
}
} Thanks for the reply!
[Updated on: Fri, 01 April 2011 10:53] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03968 seconds