Class Contains
java.lang.Object
org.apache.tools.ant.taskdefs.condition.Contains
- All Implemented Interfaces:
- Condition
Is one string part of another string?
- Since:
- Ant 1.5
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleaneval()Is this condition true?voidsetCasesensitive(boolean b) Whether to search ignoring case or not.voidThe string to search in.voidsetSubstring(String subString) The string to search for.
- 
Constructor Details- 
Containspublic Contains()
 
- 
- 
Method Details- 
setStringThe string to search in.- Parameters:
- string- the string to search in
- Since:
- Ant 1.5
 
- 
setSubstringThe 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
 
- 
evalDescription 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
 
 
-