[MWE] EcoreGenerator @generated NOT [message #1230864] |
Mon, 13 January 2014 09:04 |
|
Hi,
I hava a project with many Ecore-models. In order to (re)generate the code for all Ecore models with one click I defined a workflow like this:
Workflow {
bean = org.eclipse.emf.mwe.utils.StandaloneSetup {
scanClassPath = true
platformUri = "../.."
registerGenModelFile = "platform:/resource/foo/bar.genmodel"
}
// Models
component = org.eclipse.emf.mwe2.ecore.EcoreGenerator {
genModel = "platform:/resource/foo2/bar2.genmodel"
srcPath = "platform:/resource/foo2/src"
generateEdit = true
}
// more models...
component = org.eclipse.emf.mwe2.ecore.EcoreGenerator {
...
The code generation works fine. However I noticed that the generator does not take @generated NOT annotations into account. I have heard of the generation gap pattern but I would like to avoid it.
So my question is, if it is somehow possible to tell the EcoreGenerator (with annotations in the generated code) that previously generated code was modified and should not be overwritten.
Thanks,
Johannes
Johannes Faltermeier
Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03441 seconds