Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsInvoking Acceleo template from java app
https://www.eclipse.org/forums/index.php/mv/msg/325625/839760/#msg_839760
Hi all i'm very new to acceleo
In my project, i have a java driver class which calls different acceleo templates. Some of the templates have parameters without any EObject type. I am calling calling initialize() and doGenerate() functions of generated java module for a template. the problems are facing are :
1) initialize() expects the first argument to be Ecore object and rest of parameters are as List<Object>. However as I mentioned some of the templates do not have any EObject parameters. How do I call such templates from a java application?
2) To work around the above problem, i adjusted my driver and templates to have dummy EObject as first parameter. Then it calls templates successfully but it won't generate any output. The templates generate output if I call them from another driver template though. However I do not want to write my driver program in MTL as it requires complex analysis of data model.
Please advice me on how can I progress in my case.
Thanks&Regards
Dhanunjaya M.
]]>dhanu musham2012-04-09T06:35:20-00:00Re: Invoking Acceleo template from java app
https://www.eclipse.org/forums/index.php/mv/msg/325625/842415/#msg_842415
I answered this on stackoverflow, was the provided answer sufficient?