protected int | resourceCompare(org.apache.tools.ant.types.Resource foo, org.apache.tools.ant.types.Resource bar)Compare two Resources.
File foofile = ((FileResource) foo).getFile();
File barfile = ((FileResource) bar).getFile();
return foofile.equals(barfile) ? 0
: FILE_UTILS.isLeadingPath(foofile, barfile) ? -1
: FILE_UTILS.normalize(foofile.getAbsolutePath()).compareTo(
FILE_UTILS.normalize(barfile.getAbsolutePath()));
|