Code generator conditional behaviour [message #1797002] |
Tue, 23 October 2018 15:04  |
Eclipse User |
|
|
|
I've got a code generator that creates JPA entity classes, plus a gradle plugin that developers can include if they are defining a JPA domain model.
I'd like them to be able to control one (small) aspect of the code generation from the repo's build.gradle, ideally with a project property.
I don't know a lot about either gradle plugins, or xtext integration - for the most part I inherited this code - but perusing various bits of code I can't find a way to get information passed down to the generator code, or even a way to get the gradle project information from within the generator.
I had the generator output a full stack trace so I could see a full call-chain. I've perused the source for a bunch of classes in that trace and can't find a way to do this.
Has anyone found a way to do this?
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05405 seconds