Class ResourceContains
- java.lang.Object
- 
- org.apache.tools.ant.taskdefs.condition.ResourceContains
 
- 
- 
Constructor SummaryConstructors Constructor Description ResourceContains()
 - 
Method SummaryModifier and Type Method Description booleaneval()Evaluates the condition.ProjectgetProject()Get this condition's Project.voidsetCasesensitive(boolean casesensitive)Sets case sensitivity attribute.voidsetProject(Project project)Set this condition's Project.voidsetRefid(java.lang.String refid)Sets the refid to search; should indicate a resource directly or by way of a single-element ResourceCollection.voidsetResource(java.lang.String r)Sets the resource to searchvoidsetSubstring(java.lang.String substring)Sets the substring to look for
 
- 
- 
- 
Method Detail- 
setProjectpublic void setProject(Project project) Set this condition's Project.- Parameters:
- project- Project
 
 - 
getProjectpublic Project getProject() Get this condition's Project.- Returns:
- Project
 
 - 
setResourcepublic void setResource(java.lang.String r) Sets the resource to search- Parameters:
- r- the value to use.
 
 - 
setRefidpublic void setRefid(java.lang.String refid) Sets the refid to search; should indicate a resource directly or by way of a single-element ResourceCollection.- Parameters:
- refid- the value to use.
 
 - 
setSubstringpublic void setSubstring(java.lang.String substring) Sets 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.
 
 - 
evalpublic boolean eval() throws BuildExceptionEvaluates the condition.- Specified by:
- evalin interface- Condition
- Returns:
- true if the substring is contained in the resource
- Throws:
- BuildException- if there is a problem.
 
 
- 
 
-