DependSelectorpublic class DependSelector extends MappingSelector Selector that filters files based on whether they are newer than
a matching file in another directory tree. It can contain a mapper
element, so isn't available as an ExtendSelector (since those
parameters can't hold other elements). |
Constructors Summary |
---|
public DependSelector()Creates a new DependSelector instance.
|
Methods Summary |
---|
public boolean | selectionTest(java.io.File srcfile, java.io.File destfile)this test is our selection test that compared the file with the destfile
boolean selected = SelectorUtils.isOutOfDate(srcfile, destfile,
granularity);
return selected;
| public java.lang.String | toString()
StringBuffer buf = new StringBuffer("{dependselector targetdir: ");
if (targetdir == null) {
buf.append("NOT YET SET");
} else {
buf.append(targetdir.getName());
}
buf.append(" granularity: ");
buf.append(granularity);
if (map != null) {
buf.append(" mapper: ");
buf.append(map.toString());
} else if (mapperElement != null) {
buf.append(" mapper: ");
buf.append(mapperElement.toString());
}
buf.append("}");
return buf.toString();
|
|