org.apache.tools.ant.taskdefs

Class Replace.NestedString

public class Replace.NestedString extends Object

An inline string to use as the replacement text.
Method Summary
voidaddText(String val)
The text of the element.
StringgetText()
voidsetExpandProperties(boolean b)
Whether properties should be expanded in nested test.

Method Detail

addText

public void addText(String val)
The text of the element.

Parameters: val the string to add

getText

public String getText()

Returns: the text

setExpandProperties

public void setExpandProperties(boolean b)
Whether properties should be expanded in nested test.

If you use this class via its Java interface the text you add via addText has most likely been expanded already so you do not want to set this to true.

Since: Ant 1.8.0