Class Contains
- java.lang.Object
- 
- org.apache.tools.ant.taskdefs.condition.Contains
 
- 
- 
Constructor SummaryConstructors Constructor Description Contains()
 - 
Method SummaryModifier and Type Method Description booleaneval()Is this condition true?voidsetCasesensitive(boolean b)Whether to search ignoring case or not.voidsetString(java.lang.String string)The string to search in.voidsetSubstring(java.lang.String subString)The string to search for.
 
- 
- 
- 
Method Detail- 
setStringpublic void setString(java.lang.String string) The string to search in.- Parameters:
- string- the string to search in
- Since:
- Ant 1.5
 
 - 
setSubstringpublic void setSubstring(java.lang.String subString) The string to search for.- Parameters:
- subString- the string to search for
- Since:
- Ant 1.5
 
 - 
setCasesensitivepublic void setCasesensitive(boolean b) Whether to search ignoring case or not.- Parameters:
- b- if false, ignore case
- Since:
- Ant 1.5
 
 - 
evalpublic boolean eval() throws BuildExceptionDescription copied from interface:ConditionIs this condition true?- Specified by:
- evalin interface- Condition
- Returns:
- true if the substring is within the string
- Throws:
- BuildException- if the attributes are not set correctly
- Since:
- Ant 1.5
 
 
- 
 
-