Package org.apache.tools.ant.taskdefs
Class EchoXML
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.util.XMLFragment
org.apache.tools.ant.taskdefs.EchoXML
- All Implemented Interfaces:
Cloneable
,DynamicElementNS
Echo XML.
Known limitations:
- Processing Instructions get ignored
- Encoding is always UTF-8
- Since:
- Ant 1.7
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.tools.ant.util.XMLFragment
XMLFragment.Child
-
Field Summary
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.tools.ant.util.XMLFragment
addText, createDynamicElement, getFragment
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
-
Constructor Details
-
EchoXML
public EchoXML()
-
-
Method Details
-
setFile
-
setNamespacePolicy
Set the namespace policy for the xml file- Parameters:
n
- namespace policy: "ignore", "elementsOnly", or "all"- See Also:
-
setAppend
public void setAppend(boolean b) Set whether to append the output file.- Parameters:
b
- boolean append flag.
-
execute
public void execute()Execute the task.
-