Class DependSelector

All Implemented Interfaces:
Cloneable, ResourceSelector, FileSelector

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 Details

    • DependSelector

      public DependSelector()
  • Method Details

    • toString

      public String toString()
      Description copied from class: DataType
      Basic DataType toString().
      Overrides:
      toString in class DataType
      Returns:
      a string describing this object
    • selectionTest

      public boolean selectionTest(File srcfile, File destfile)
      this test is our selection test that compared the file with the destfile
      Specified by:
      selectionTest in class MappingSelector
      Parameters:
      srcfile - the source file
      destfile - the destination file
      Returns:
      true if destination is out of date