FAQ

[Ant-user] Selecting the largest or oldest files in a directory

Harold Putman
Feb 8, 2012 at 1:08 pm
Is there a way to select the "n" largest files or the n oldest files in a
directory?
Looking through all the standard
Selectors<http://ant.apache.org/manual/Types/selectors.html>I can't
see a way to do this. Is there some "ant-contrib"-y place I could
find a custom selector that does something like this? Or do I need to
write my own?

Thanks,

Harold

--
Harold PUTMAN
Web Technology Specialist
*Lexmark International, Inc. <http://www.lexmark.com>*
740 W New Circle Rd.
Lexington, KY 40550
+1(859) 232-2839
hputman@lexmark.com
reply

Search Discussions

1 response

  • Matt Benson at Feb 8, 2012 at 3:33 pm

    On Wed, Feb 8, 2012 at 7:08 AM, Harold Putman wrote:
    Is there a way to select the "n" largest files or the n oldest files in a
    directory?
    Looking through all the standard
    Selectors<http://ant.apache.org/manual/Types/selectors.html>I can't
    see a way to do this. Is there some "ant-contrib"-y place I could
    find a custom selector that does something like this?  Or do I need to
    write my own?
    Hi, Harold--see http://ant.apache.org/manual/Types/resources.html#last .

    HTH,
    Matt
    Thanks,

    Harold

    --
    Harold PUTMAN
    Web Technology Specialist
    *Lexmark International, Inc. <http://www.lexmark.com>*
    740 W New Circle Rd.
    Lexington, KY 40550
    +1(859) 232-2839
    hputman@lexmark.com
    ---------------------------------------------------------------------
    To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
    For additional commands, e-mail: user-help@ant.apache.org

Related Discussions

Discussion Navigation
viewthread | post

2 users in discussion

Matt Benson: 1 post Harold Putman: 1 post