Class DependSelector
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.selectors.BaseSelector
org.apache.tools.ant.types.selectors.MappingSelector
org.apache.tools.ant.types.selectors.DependSelector
- All Implemented Interfaces:
Cloneable, ResourceSelector, FileSelector
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 MappingSelector
granularity, map, mapperElement, targetdirFields inherited from class ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanselectionTest(File srcfile, File destfile) this test is our selection test that compared the file with the destfiletoString()Basic DataType toString().Methods inherited from class MappingSelector
addConfigured, createMapper, isSelected, setGranularity, setTargetdir, verifySettingsMethods inherited from class BaseSelector
getError, setError, setError, validateMethods inherited from class DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributesMethods inherited from class ProjectComponent
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface FileSelector
isSelected
-
Constructor Details
-
DependSelector
public DependSelector()
-
-
Method Details
-
toString
-
selectionTest
this test is our selection test that compared the file with the destfile- Specified by:
selectionTestin classMappingSelector- Parameters:
srcfile- the source filedestfile- the destination file- Returns:
- true if destination is out of date
-