Combine the date selector with the task. In , you can
specify the offset and a property. For example:
This will set the ${delete.date} to ten days before today in the
format the date selector likes.
Then, using the selector:
And, all files in ${some.dir} older th
Thanks CHarbel
But it looks we need to keep the date static ..My script runs daily... And i
wanted to delete folders older than the specific date which varies daily (
eg.current date).
Only the reports for the last 10 days should be in my m/c
On Feb 4, 2008 5:14 AM, Charbel BITAR <[EMAIL PROTECTE
Hi Ramu,
Check http://ant.apache.org/manual/CoreTypes/selectors.html#dateselect
HTH
--
Charbel
On Feb 3, 2008 4:52 PM, Ramu Sethu <[EMAIL PROTECTED]> wrote:
> Hi All
>
> I actually wanted to manage a set of folders. We create junit reports
> daily
> with the folder name Report. I want ant to
Hi All
I actually wanted to manage a set of folders. We create junit reports daily
with the folder name Report. I want ant to delete the report folders
which are older than 10 days. Is it possible to do with ant built in tasks
or Should i go for custom tasks?. I tried with the nested fileset of