The TimestampSelector task takes either a nested <path> element,
       or a path reference, and sets either a named property, or a path
       instance to absolute pathnames of the files with either the N latest or earliest
       modification dates (based on the age attribute)
| Attribute | Description | Required | 
|---|---|---|
| property | The property to set with the most recently modified file.  Mutually
            exclusive with the outputsetidattribute. | Yes, if outputsetidis not specified. | 
| outputsetid | The id of a pathinstance which will contain the
           resulting list of files.  This id should not already exist.  Mutually exclusive
           with thepropertyattribute | Yes, if propertyis note specified. | 
| count | The number of files to find.  If more than 1, than the
           files in the output appear in the order indicated by the ageattribute. | No.  Defaults to 1 | 
| age | The age of the files to retrieve, either eldestoryoungest.  Defaults toyoungest. | No.  Defaults to 1 | 
| pathSep | The path separator to separate paths with when using the propertyattribute in conjunction with thecountattribute | No.  Defaults to , | 
| pathref | Id of the path to find the most recently modified file in. | No, if a pathsubelement is
                 specified. | 
Path is used to select sets of files or directories in which to find the most recently modified file
    
    <path id="mypath">
       <fileset dir="${log.dir}">
         <include name="update*.log" />
       </fileset>
    <path>
    <timestampselector property="most.recent.logs"
                        pathref="mypath" count="3"
                        pathsep=";" />
    <echo message="${most.recent.logs}" />
    
    
    path element
    
    <timestampselector property="most.recent.logs"
                        count="3"
                        pathsep=";" >
      <path>
         <fileset dir="${log.dir}">
           <include name="update*.log" />
         </fileset>
      <path>
    </timestampselector>
    <echo message="${most.recent.logs}" />
    
    
    path element
    
    <timestampselector outputsetref="most.recent.logs"
                        pathref="mypath" count="3">
      <path>
         <fileset dir="${log.dir}">
           <include name="update*.log" />
         </fileset>
      <path>
    </timestampselector>
    <copy todir="somedir">
      <path refid="most.recent.logs" />
    </copy>
    
    
    Copyright © 2002-2003 Ant-Contrib Project. All rights Reserved.