org.apache.tools.ant.taskdefs

Class EchoXML

Implemented Interfaces:
Cloneable, DynamicElementNS

public class EchoXML
extends XMLFragment

Echo XML. Known limitations:
  1. Currently no XMLNS support
  2. Processing Instructions get ignored
  3. 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

Method Summary

void
execute()
Execute the task.
void
setAppend(boolean b)
Set whether to append the output file.
void
setFile(File f)
Set the output file.

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

Method Details

execute

public void execute()
Execute the task.

setAppend

public void setAppend(boolean b)
Set whether to append the output file.
Parameters:
b - boolean append flag.

setFile

public void setFile(File f)
Set the output file.
Parameters:
f - the output file.