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:
- java.lang.Cloneable,- DynamicElementNS
 
 public class EchoXML extends XMLFragment Echo XML. Known limitations:- Processing Instructions get ignored
- Encoding is always UTF-8
 - Since:
- Ant 1.7
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classEchoXML.NamespacePolicy- 
Nested classes/interfaces inherited from class org.apache.tools.ant.util.XMLFragmentXMLFragment.Child
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
 
- 
 - 
Constructor SummaryConstructors Constructor Description EchoXML()
 - 
Method SummaryModifier and Type Method Description voidexecute()Execute the task.voidsetAppend(boolean b)Set whether to append the output file.voidsetFile(java.io.File f)Set the output file.voidsetNamespacePolicy(EchoXML.NamespacePolicy n)Set the namespace policy for the xml file- 
Methods inherited from class org.apache.tools.ant.util.XMLFragmentaddText, createDynamicElement, getFragment
 - 
Methods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
 
- 
 
- 
- 
- 
Method Detail- 
setFilepublic void setFile(java.io.File f) Set the output file.- Parameters:
- f- the output file.
 
 - 
setNamespacePolicypublic void setNamespacePolicy(EchoXML.NamespacePolicy n) Set the namespace policy for the xml file- Parameters:
- n- namespace policy: "ignore", "elementsOnly", or "all"
- See Also:
- DOMElementWriter.XmlNamespacePolicy
 
 - 
setAppendpublic void setAppend(boolean b) Set whether to append the output file.- Parameters:
- b- boolean append flag.
 
 - 
executepublic void execute() Execute the task.
 
- 
 
-