Class DependSelector

  • All Implemented Interfaces:
    java.lang.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 Detail

      • DependSelector

        public DependSelector()
    • Method Detail

      • toString

        public java.lang.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​(java.io.File srcfile,
                                     java.io.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