ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject dirset > get eldest | youngest dir ?
Date Fri, 09 Feb 2007 10:52:28 GMT

Hi,

how to get the eldest or youngest dir in a dirset ?

the antcontrib <timestampselector> task works only for filesets

a test with a dirset  :

        <path id="mypath">
            <dirset dir="//foobar23/ftpserver" />
        </path>

        <timestampselector property="most.recent.logs"
            pathref="mypath"
            count="1"
         />

        <echo message="${most.recent.logs}" />

gave me :

depends:
     [echo] \\foobar23\ftpserver\070209081530\bla

but i want  the dir ...\070209081530 only


Any ideas ?



Gilbert



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message