|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--org.apache.tools.ant.taskdefs.Concat.TextElement
sub element points to a file or contains text
Field Summary |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
Concat.TextElement()
|
Method Summary | |
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 |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, log, log, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Concat.TextElement()
Method Detail |
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)
file
- the file to use
BuildException
- 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |