|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.taskdefs.condition.ResourceContains
public class ResourceContains
<resourcecontains> Is a string contained in a resource (file currently)?
Constructor Summary | |
---|---|
ResourceContains()
|
Method Summary | |
---|---|
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(java.lang.String refid)
Sets the refid to search; should indicate a resource directly or by way of a single-element ResourceCollection. |
void |
setResource(java.lang.String r)
Sets the resource to search |
void |
setSubstring(java.lang.String substring)
Sets the substring to look for |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceContains()
Method Detail |
---|
public void setProject(Project project)
project
- Projectpublic Project getProject()
public void setResource(java.lang.String r)
r
- the value to use.public void setRefid(java.lang.String refid)
refid
- the value to use.public void setSubstring(java.lang.String substring)
substring
- the value to use.public void setCasesensitive(boolean casesensitive)
casesensitive
- the value to use.public boolean eval() throws BuildException
eval
in interface Condition
BuildException
- if there is a problem.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |