public static class Concat.TextElement extends ProjectComponent
description, location, project
Constructor and Description |
---|
Concat.TextElement() |
Modifier and Type | Method and Description |
---|---|
void |
addText(java.lang.String value)
set the text using inline
|
java.lang.String |
getValue() |
void |
setEncoding(java.lang.String encoding)
The encoding of the text element
|
void |
setFile(java.io.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
|
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public void setFiltering(boolean filtering)
filtering
- true if the text should be filtered.
the default value is true.public void setEncoding(java.lang.String encoding)
encoding
- the name of the charset used to encodepublic void setFile(java.io.File file) throws BuildException
file
- the file to useBuildException
- if the file does not exist, or cannot be
readpublic void addText(java.lang.String value)
value
- the text to place inlinepublic void setTrimLeading(boolean strip)
strip
- if true do the trimpublic void setTrim(boolean trim)
trim
- if true trim the textpublic java.lang.String getValue()