Class ResourceContains
java.lang.Object
org.apache.tools.ant.taskdefs.condition.ResourceContains
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleaneval()Evaluates the condition.Get this condition's Project.voidsetCasesensitive(boolean casesensitive) Sets case sensitivity attribute.voidsetProject(Project project) Set this condition's Project.voidSets the refid to search; should indicate a resource directly or by way of a single-element ResourceCollection.voidSets the resource to searchvoidsetSubstring(String substring) Sets the substring to look for
- 
Constructor Details- 
ResourceContainspublic ResourceContains()
 
- 
- 
Method Details- 
setProject
- 
getProject
- 
setResource
- 
setRefidSets the refid to search; should indicate a resource directly or by way of a single-element ResourceCollection.- Parameters:
- refid- the value to use.
 
- 
setSubstringSets the substring to look for- Parameters:
- substring- the value to use.
 
- 
setCasesensitivepublic void setCasesensitive(boolean casesensitive) Sets case sensitivity attribute.- Parameters:
- casesensitive- the value to use.
 
- 
evalEvaluates the condition.- Specified by:
- evalin interface- Condition
- Returns:
- true if the substring is contained in the resource
- Throws:
- BuildException- if there is a problem.
 
 
-