|
|||||||||
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.ResourcesMatch
public class ResourcesMatch
Compares resources for equality based on size and content.
All resources specified must match; no resource collections
specified is an error condition; if resource collections are
specified, but yield fewer than two elements, the condition
evaluates to true
.
Constructor Summary | |
---|---|
ResourcesMatch()
|
Method Summary | |
---|---|
void |
add(ResourceCollection rc)
Add a resource collection. |
boolean |
eval()
Verify that all resources match. |
void |
setAsText(boolean asText)
Set whether to treat resources as if they were text files, ignoring line endings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourcesMatch()
Method Detail |
---|
public void setAsText(boolean asText)
asText
- whether to ignore line endings.public void add(ResourceCollection rc)
rc
- the resource collection to add.public boolean eval() throws BuildException
eval
in interface Condition
BuildException
- if there is an error.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |