org.apache.tools.ant.taskdefs

Class Concat.TextElement

Enclosing Class:
Concat

public static class Concat.TextElement
extends ProjectComponent

sub element points to a file or contains text

Field Summary

Fields inherited from class org.apache.tools.ant.ProjectComponent

project

Method Summary

void
addText(String value)
set the text using inline
String
getValue()
void
setEncoding(String encoding)
The encoding of the text element
void
setFile(File file)
set the text using a file
void
setFiltering(boolean filtering)
whether to filter the text in this element or not.
void
setTrim(boolean trim)
whether to call text.trim()
void
setTrimLeading(boolean strip)
s:^\s*:: on each line of input

Methods inherited from class org.apache.tools.ant.ProjectComponent

getProject, log, log, setProject

Method Details

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

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 © 2000-2006 Apache Software Foundation. All Rights Reserved.