Class Contains
java.lang.Object
org.apache.tools.ant.taskdefs.condition.Contains
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
eval()
Is this condition true?void
setCasesensitive
(boolean b) Whether to search ignoring case or not.void
The string to search in.void
setSubstring
(String subString) The string to search for.
-
Constructor Details
-
Contains
public Contains()
-
-
Method Details
-
setString
The string to search in.- Parameters:
string
- the string to search in- Since:
- Ant 1.5
-
setSubstring
The string to search for.- Parameters:
subString
- the string to search for- Since:
- Ant 1.5
-
setCasesensitive
public void setCasesensitive(boolean b) Whether to search ignoring case or not.- Parameters:
b
- if false, ignore case- Since:
- Ant 1.5
-
eval
Description copied from interface:Condition
Is this condition true?- Specified by:
eval
in interfaceCondition
- Returns:
- true if the substring is within the string
- Throws:
BuildException
- if the attributes are not set correctly- Since:
- Ant 1.5
-