TOP

template

Description

Template-based file generation. This task requires a previous <template.init> was called to bind the context with its class path and directories.
   Usage:
     <template context="..." method="..." file="..."/>
        this use calls the template named conext\<class name of <b>this</b> object>\method.jsp
        applying the template on <b>this</b> object

     <template context="..." method="..." file="..." property="property name"/>
        this use calls the template named conext\<class name of <b>property name</b> object>\method.jsp
        applying the template on <b>this</b> object
 

Implementation class

net.mdatools.modelant.template.task.TemplateTask

Parameters

Attribute Description Type
context The name of the context holding the JSP templates, as declared in template.init task. String
file The name of the file to store the template's output in String
method The name of the actual JSP template to render the target object. Its path is automatically detected based on the actual class of the current (this) model object. String
property is the property whose value is to be rendered. String

Use <typedef resource="net/mdatools/modelant/template/antlib.xml"/>
Documentation generated by ant.doc Ant macro from ModelAnt by MDA Tools