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 ClassesNested classes/interfaces inherited from class XMLFragment
XMLFragment.ChildModifier and TypeClassDescriptionclassAn object to handle (recursively) nested elements. -
Field Summary
Fields inherited from class ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class XMLFragment
addText, createDynamicElement, getFragmentModifier and TypeMethodDescriptionvoidAdd nested text, expanding properties as we gocreateDynamicElement(String uri, String name, String qName) Creates a nested element.Methods inherited from class ProjectComponent
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectModifier and TypeMethodDescriptionclone()Returns the description of the current action.Returns the file/location where this task was defined.Returns the project to which this component belongs.voidLogs a message with the default (INFO) priority.voidLogs a message with the given priority.voidsetDescription(String desc) Sets a description of the current action.voidsetLocation(Location location) Sets the file/location where this task was defined.voidsetProject(Project project) Sets the project object of this component.
-
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.
-