Reputation: 31
I want to know if and how I can change the templates that generate the code in a ROO-Project.
There is a corresponding .aj-file for each controller, that is generated by ROO. I know it is possible to override the methods in the .java-file, but I don't want to do that. I would like to change the template so that all generated .aj-files contain my changes.
I've worked quite a bit with Grails. There you can use the command "install-templates". Afterwards you can completly customize the scaffolding logic to your needs. Thats exactly what I am looking for in ROO as well.
I was not able to find a solution for that. Here are some jira tickets, but I didn't understand if and how I could achieve my goal:
Any idea if that is even possible? Thanks for your help
Upvotes: 2
Views: 928
Reputation: 2663
To do that, Currently, you have this options:
This is no a easy thing. I my opinion, only If you need do this customization in some projects (more than 3 or 4 project by example) and the logic will evolve you worth create an add-on.
Good luck!
Upvotes: 1