org.apache.tools.ant.taskdefs.condition
Class ResourceContains
java.lang.Objectorg.apache.tools.ant.taskdefs.condition.ResourceContains
- Condition
public class ResourceContains
extends java.lang.Object
<resourcecontains>
Is a string contained in a resource (file currently)?
boolean | eval()- Evaluates the condition.
|
Project | getProject()- Get this condition's Project.
|
void | setCasesensitive(boolean casesensitive)- Sets case sensitivity attribute.
|
void | setProject(Project project)- Set this condition's Project.
|
void | setRefid(String refid)- Sets the refid to search; should indicate a resource directly
or by way of a single-element ResourceCollection.
|
void | setResource(String r)- Sets the resource to search
|
void | setSubstring(String substring)- Sets the substring to look for
|
eval
public boolean eval()
throws BuildException Evaluates the condition.
- eval in interface Condition
- true if the substring is contained in the resource
getProject
public Project getProject()
Get this condition's Project.
setCasesensitive
public void setCasesensitive(boolean casesensitive)
Sets case sensitivity attribute.
casesensitive - the value to use.
setProject
public void setProject(Project project)
Set this condition's Project.
setRefid
public void setRefid(String refid)
Sets the refid to search; should indicate a resource directly
or by way of a single-element ResourceCollection.
refid - the value to use.
setResource
public void setResource(String r)
Sets the resource to search
setSubstring
public void setSubstring(String substring)
Sets the substring to look for
substring - the value to use.