I'm looking for a task that will allow me to delete a set of files, except for the last N (say, the last 5 most recently modified files).
Specifically, the application I work on is built automatically (using Cruse Control), and I'd like to keep just the last N .jar files that it constructs -- rather than have to remember to go and clean up the directory when the disk fills :-(. I guess I could do this with a cron job/scheduled task, or I could shell out, but I think it would be neater as a task. I'm very happy to go and write a custom task, but I'd rather not if there's a clever way to do this using the core or optionals tasks. Many thanks Richard -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
