org.apache.tools.ant.types.selectors

Class DependSelector

Implemented Interfaces:
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

Field Summary

Fields inherited from class org.apache.tools.ant.types.selectors.MappingSelector

granularity, map, mapperElement, targetdir

Fields inherited from class org.apache.tools.ant.types.DataType

checked, description, ref

Fields inherited from class org.apache.tools.ant.ProjectComponent

project

Constructor Summary

DependSelector()
Creates a new DependSelector instance.

Method Summary

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

Methods inherited from class org.apache.tools.ant.types.selectors.MappingSelector

createMapper, isSelected, selectionTest, setGranularity, setTargetdir, verifySettings

Methods inherited from class org.apache.tools.ant.types.selectors.BaseSelector

getError, isSelected, setError, validate, verifySettings

Methods inherited from class org.apache.tools.ant.types.DataType

checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, setRefid, tooManyAttributes

Methods inherited from class org.apache.tools.ant.ProjectComponent

getProject, log, log, setProject

Constructor Details

DependSelector

public DependSelector()
Creates a new DependSelector instance.

Method Details

selectionTest

public boolean selectionTest(File srcfile,
                             File destfile)
this test is our selection test that compared the file with the destfile
Overrides:
selectionTest in interface MappingSelector
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 B) 2000-2008 Apache Software Foundation. All Rights Reserved.