Package ise.antelope.tasks
Class Contains
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.taskdefs.condition.IsTrue
-
- ise.antelope.tasks.Contains
-
- All Implemented Interfaces:
java.lang.Cloneable,org.apache.tools.ant.taskdefs.condition.Condition
public class Contains extends org.apache.tools.ant.taskdefs.condition.IsTrue
-
-
Constructor Summary
Constructors Constructor Description Contains()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleaneval()voidsetCasesensitive(boolean b)Whether to search ignoring case or not.voidsetProperty(java.lang.String s)The name of a property value to search in.voidsetString(java.lang.String string)The string to search in.voidsetSubstring(java.lang.String subString)The string to search for.
-
-
-
Method Detail
-
setProperty
public void setProperty(java.lang.String s)
The name of a property value to search in.- Parameters:
s- the property name- Since:
- Ant 1.5
-
setString
public void setString(java.lang.String string)
The string to search in.- Parameters:
string- the string to search in- Since:
- Ant 1.5
-
setSubstring
public void setSubstring(java.lang.String subString)
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 true, ignore case- Since:
- Ant 1.5
-
eval
public boolean eval() throws org.apache.tools.ant.BuildException- Specified by:
evalin interfaceorg.apache.tools.ant.taskdefs.condition.Condition- Overrides:
evalin classorg.apache.tools.ant.taskdefs.condition.IsTrue- Returns:
- true if the substring is within the string
- Throws:
org.apache.tools.ant.BuildException- if the attributes are not set correctly- Since:
- Ant 1.5
-
-