[ http://jira.andromda.org/browse/TEMPENG-3?page=history ]
Olaf Muliawan updated TEMPENG-3: -------------------------------- Attachment: FreeMarkerTemplateEngine.java FreeMarkerTemplateEngineTest.java I tried to add the merging of template engines, but it's incomplete due to my inexperience with this aspect of the templateengines. The addition of macro libraries was not as complete as I thought. Maybe you could fill in the blanks, Chad? > FreeMarker Template Engine does not work. > ----------------------------------------- > > Key: TEMPENG-3 > URL: http://jira.andromda.org/browse/TEMPENG-3 > Project: Template Engines > Type: Improvement > Environment: AndroMDA 3.1 > Reporter: Olaf Muliawan > Assignee: Chad Brandon > Attachments: FreeMarkerTemplateEngine.java, FreeMarkerTemplateEngine.java, > FreeMarkerTemplateEngineTest.java, FreeMarkerTemplateEngineTest.java > > The current implementation of FreeMarker Template Engine is not fully > functional. The solution lies in configuration of FreeMarker in the method > processTemplate(...): > if (this.configuration == null) > { > this.configuration = new Configuration(); > Class mainClass = org.andromda.ant.task.AndroMDAGenTask.class; > > // Tell FreeMarker it should use the classpath when searching for > templates > configuration.setClassForTemplateLoading(mainClass, "/"); > // use Bean Wrapper, in order to get maximal reflection > capabilities > configuration.setObjectWrapper(ObjectWrapper.BEANS_WRAPPER); > } ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf