Hi,

I guess that Ant standard tasks only allow you to delete dir olders than
a specified date. To delete a special number of folders you probably
need to write a small script.

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com


Willi Kuhnis wrote:
> Hi,
> 
> I save my webtest results under the result-path in
> a structure like this:
> 
> <tstamp >
>       <format property="savepath" pattern="yyyyMMdd_HHmm"/>
> </tstamp>
> 
> Result:
> 
> 07.02.2008  14:14    <DIR>          20080207_1407
> 07.02.2008  15:03    <DIR>          20080207_1456
> 07.02.2008  15:20    <DIR>          20080207_1506
> 07.02.2008  15:33    <DIR>          20080207_1521
> 07.02.2008  16:24    <DIR>          20080207_1541
> 08.02.2008  08:00    <DIR>          20080208_0800
> 08.02.2008  08:13    <DIR>          20080208_0813
> 08.02.2008  08:14    <DIR>          20080208_0814
> 08.02.2008  08:17    <DIR>          20080208_0817
> 08.02.2008  08:18    <DIR>          20080208_0818
> 08.02.2008  08:24    <DIR>          20080208_0824
> 08.02.2008  08:25    <DIR>          20080208_0825
> 08.02.2008  08:27    <DIR>          20080208_0827
> 08.02.2008  08:33    <DIR>          20080208_0833
> 08.02.2008  08:37    <DIR>          20080208_0836
> 08.02.2008  08:38    <DIR>          20080208_0838
> 
> Now at the start of each webtest run,
> I would like to restrict the number of backups to maybe 10,
> so I want to delete the oldest backups.
> 
> Question:
> Any ideas, how to delete the oldest directories and keep only 10 backups ?
> 
> Thanks
> Willi
> 
> 


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to