org.apache.tools.ant.taskdefs

Class Concat.TextElement

public static class Concat.TextElement extends ProjectComponent

sub element points to a file or contains text
Method Summary
voidaddText(String value)
set the text using inline
StringgetValue()
voidsetEncoding(String encoding)
The encoding of the text element
voidsetFile(File file)
set the text using a file
voidsetFiltering(boolean filtering)
whether to filter the text in this element or not.
voidsetTrim(boolean trim)
whether to call text.trim()
voidsetTrimLeading(boolean strip)
s:^\s*:: on each line of input

Method Detail

addText

public void addText(String value)
set the text using inline

Parameters: value the text to place inline

getValue

public String getValue()

Returns: the text, after possible trimming

setEncoding

public void setEncoding(String encoding)
The encoding of the text element

Parameters: encoding the name of the charset used to encode

setFile

public void setFile(File file)
set the text using a file

Parameters: file the file to use

Throws: BuildException if the file does not exist, or cannot be read

setFiltering

public void setFiltering(boolean filtering)
whether to filter the text in this element or not.

Parameters: filtering true if the text should be filtered. the default value is true.

setTrim

public void setTrim(boolean trim)
whether to call text.trim()

Parameters: trim if true trim the text

setTrimLeading

public void setTrimLeading(boolean strip)
s:^\s*:: on each line of input

Parameters: strip if true do the trim

Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.