How can I access the properties of a GORM object in GroovyScriptCommand?

I used the Grails create-script command to create my own custom script to render source code artifacts based on a GORM domain object. I want to create a command object that contains the properties of a domain object. I see properties and methods in GroovyScriptCommand and TemplateRenderer, but I can’t say how to get a link to the properties of a domain object or how to render them in my forest templates. I tried forClass (model.fullName), but it says a ClassNotFounException. I also tried install-templates, but this command no longer installs templates that display any object properties.

+2
source share

All Articles