Re: custom selector which examines multiple files before returning an answer

2005-06-07 Thread Frode E. Moe
On Tue, Jun 07, 2005 at 08:05:51 -0700, Matt Benson wrote: > In Ant 1.7 you will be able to do this (...) > Unfortunately this doesn't help you particularly now, (...) No problem, thanks for the quick answer - which saved me some time searching the ant 1.6.x source for something which wouldn't b

Re: custom selector which examines multiple files before returning an answer

2005-06-07 Thread Matt Benson
--- Matt Benson <[EMAIL PROTECTED]> wrote: > - restrict the sorted collection to the first > returned > (mental note on my part to write a > resourceselector) and store as reference "bar". Actually, after thinking about this, will not be a resource selector for use with the collection; will me

Re: custom selector which examines multiple files before returning an answer

2005-06-07 Thread Matt Benson
(excuse the top-post) In Ant 1.7 you will be able to do this using ResourceCollections which include the ability to sort as well as select. The correct approach would then be very like what you are proposing: - select files matching the specified name, store as reference "foo". - reverse-sort "f

custom selector which examines multiple files before returning an answer

2005-06-07 Thread Frode E. Moe
Hi, I'm trying to implement a way to detect duplicate .jar files (where only the version differ) and delete all duplicates except the newest. The way I hoped to implement this was to use the task together with a custom Selector, like this: Unfortunately this doesn't seem to