You could calculate that with <tstamp>:

<property name="noOfDays.pattern" value="yyyyMMdd_HHmmdd"/>
<input property="noOfDays"/>
<tstamp>
  <format property="noOfDays.date" pattern="${noOfDays.pattern}" 
offset="${noOfDays" unit="day"/>
</tstamp
<fileset...>
  <date datetime="${noOfDays.date}" when="before" 
pattern="${noOfDays.pattern}"/>
</fileset>


Jan 

> -----Ursprüngliche Nachricht-----
> Von: M White [mailto:tc1...@yahoo.com] 
> Gesendet: Montag, 24. August 2009 13:45
> An: ant user
> Betreff: Reg :Selection of files on the basis of no of days
> 
> Hi,
>     I need to copy files from the src folder on the basis of 
> no of days specified by the user.
>      But date tag needs an exact date.
>     How to make it work by specifying the no of days?
>                                                     Thanks & Regards 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to