public class OptionalTextType extends Object
String base text type for
Ant Task
implementations. Support "if" and "unless" property predicates.
| Constructor and Description |
|---|
OptionalTextType() |
| Modifier and Type | Method and Description |
|---|---|
void |
addText(String text) |
String |
getIf() |
String |
getUnless() |
boolean |
isActive(Project project)
Method to determine if the "if" and "unless" tests have been
satisfied.
|
void |
setIf(String ifP)
Sets the "if" condition to test on execution.
|
void |
setUnless(String unlessP)
Sets the "unless" condition to test on execution.
|
public OptionalTextType()
public void setIf(String ifP)
OptionalTextType should be included.ifP - The property condition to test on execution.
If the value is null no "if" test
will not be performed.public void setUnless(String unlessP)
OptionalTextType should not be included.unlessP - The property condition to test on execution.
If the value is null no "unlessP"
test will not be performed.Copyright © 2015–2021. All rights reserved.