Class ResourceContains
java.lang.Object
org.apache.tools.ant.taskdefs.condition.ResourceContains
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
eval()
Evaluates the condition.Get this condition's Project.void
setCasesensitive
(boolean casesensitive) Sets case sensitivity attribute.void
setProject
(Project project) Set this condition's Project.void
Sets the refid to search; should indicate a resource directly or by way of a single-element ResourceCollection.void
Sets the resource to searchvoid
setSubstring
(String substring) Sets the substring to look for
-
Constructor Details
-
ResourceContains
public ResourceContains()
-
-
Method Details
-
setProject
-
getProject
-
setResource
-
setRefid
Sets the refid to search; should indicate a resource directly or by way of a single-element ResourceCollection.- Parameters:
refid
- the value to use.
-
setSubstring
Sets the substring to look for- Parameters:
substring
- the value to use.
-
setCasesensitive
public void setCasesensitive(boolean casesensitive) Sets case sensitivity attribute.- Parameters:
casesensitive
- the value to use.
-
eval
Evaluates the condition.- Specified by:
eval
in interfaceCondition
- Returns:
- true if the substring is contained in the resource
- Throws:
BuildException
- if there is a problem.
-