ise.antelope.tasks
public class Contains extends org.apache.tools.ant.taskdefs.condition.IsTrue
Constructor and Description |
---|
Contains() |
Modifier and Type | Method and Description |
---|---|
boolean |
eval() |
void |
setCasesensitive(boolean b)
Whether to search ignoring case or not.
|
void |
setProperty(java.lang.String s)
The name of a property value to search in.
|
void |
setString(java.lang.String string)
The string to search in.
|
void |
setSubstring(java.lang.String subString)
The string to search for.
|
public void setProperty(java.lang.String s)
s
- the property namepublic void setString(java.lang.String string)
string
- the string to search inpublic void setSubstring(java.lang.String subString)
subString
- the string to search forpublic void setCasesensitive(boolean b)
b
- if true, ignore casepublic boolean eval() throws org.apache.tools.ant.BuildException
eval
in interface org.apache.tools.ant.taskdefs.condition.Condition
eval
in class org.apache.tools.ant.taskdefs.condition.IsTrue
org.apache.tools.ant.BuildException
- if the attributes are not set correctly