org.apache.tools.ant.taskdefs
public class MacroInstance extends Task implements DynamicAttribute, TaskContainer
Since: Ant 1.6
Nested Class Summary | |
---|---|
static class | MacroInstance.Element
Embedded element in macro instance |
Method Summary | |
---|---|
void | addTask(Task nestedTask)
Add a unknownElement for the macro instances nested elements.
|
void | addText(String text)
Set the text contents for the macro. |
Object | createDynamicElement(String name)
Method present for BC purposes. |
void | execute()
Execute the templates instance.
|
MacroDef | getMacroDef() |
void | setDynamicAttribute(String name, String value)
A parameter name value pair as a xml attribute.
|
void | setMacroDef(MacroDef macroDef)
Called from MacroDef.MyAntTypeDefinition#create()
|
Parameters: nestedTask a nested element.
Parameters: text the text to be added to the macro.
Deprecated: since 1.6.x.
Method present for BC purposes.Parameters: name not used
Returns: nothing
Throws: BuildException always
Returns: the macro definition object for this macro instance.
Parameters: name the name of the attribute value the value of the attribute
Parameters: macroDef a MacroDef
value