| java.lang.Object org.apache.tools.ant.taskdefs.condition.ResourcesMatch
ResourcesMatch | public class ResourcesMatch implements Condition(Code) | | 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 .
since: Ant 1.7 |
Method Summary | |
public void | add(ResourceCollection rc) Add a resource collection. | public boolean | eval() Verify that all resources match. | public void | setAsText(boolean asText) Set whether to treat resources as if they were text files,
ignoring line endings. |
add | public void add(ResourceCollection rc)(Code) | | Add a resource collection.
Parameters: rc - the resource collection to add. |
setAsText | public void setAsText(boolean asText)(Code) | | Set whether to treat resources as if they were text files,
ignoring line endings.
Parameters: asText - whether to ignore line endings. |
|
|