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:
- 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
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.tools.ant.types.selectors.MappingSelectorgranularity, map, mapperElement, targetdir
 - 
Fields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
 
- 
 - 
Constructor SummaryConstructors Constructor Description DependSelector()
 - 
Method SummaryModifier and Type Method Description booleanselectionTest(java.io.File srcfile, java.io.File destfile)this test is our selection test that compared the file with the destfilejava.lang.StringtoString()Basic DataType toString().- 
Methods inherited from class org.apache.tools.ant.types.selectors.MappingSelectoraddConfigured, createMapper, isSelected, setGranularity, setTargetdir, verifySettings
 - 
Methods inherited from class org.apache.tools.ant.types.selectors.BaseSelectorgetError, setError, setError, validate
 - 
Methods inherited from class org.apache.tools.ant.types.DataTypecheckAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes
 - 
Methods inherited from class org.apache.tools.ant.ProjectComponentgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
 - 
Methods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.tools.ant.types.selectors.FileSelectorisSelected
 
- 
 
- 
- 
- 
Method Detail- 
toStringpublic java.lang.String toString() Description copied from class:DataTypeBasic DataType toString().
 - 
selectionTestpublic 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:
- selectionTestin class- MappingSelector
- Parameters:
- srcfile- the source file
- destfile- the destination file
- Returns:
- true if destination is out of date
 
 
- 
 
-