Contentpublic class Content extends ResourceComparator Compares Resources by content. |
Fields Summary |
---|
private boolean | binary |
Methods Summary |
---|
public boolean | isBinary()Learn whether this Content ResourceComparator is operating in binary mode.
return binary;
| protected int | resourceCompare(org.apache.tools.ant.types.Resource foo, org.apache.tools.ant.types.Resource bar)Compare two Resources by content.
try {
return ResourceUtils.compareContent(foo, bar, !binary);
} catch (IOException e) {
throw new BuildException(e);
}
| public void | setBinary(boolean b)Set binary mode for this Content ResourceComparator. If this
attribute is set to false, Resource content will be compared
ignoring platform line-ending conventions.
Default is true .
binary = b;
|
|