org.apache.tools.ant.types.selectors

Class DependSelector

public 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).

Since: 1.5

Constructor Summary
DependSelector()
Creates a new DependSelector instance.
Method Summary
booleanselectionTest(File srcfile, File destfile)
this test is our selection test that compared the file with the destfile
StringtoString()

Constructor Detail

DependSelector

public DependSelector()
Creates a new DependSelector instance.

Method Detail

selectionTest

public boolean selectionTest(File srcfile, File destfile)
this test is our selection test that compared the file with the destfile

Parameters: srcfile the source file destfile the destination file

Returns: true if destination is out of date

toString

public String toString()

Returns: a string describing this object

Copyright