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 RE: dirset > get eldest | youngest dir ?
Date Fri, 09 Feb 2007 11:00:39 GMT

Hi,

first think then write ;-)

works with =

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

including only the first level of subdirs

Regards, Gilbert
 

-----Original Message-----
From: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de] 
Sent: Friday, February 09, 2007 11:52 AM
To: user@ant.apache.org
Subject: dirset > get eldest | youngest dir ?


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


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


Mime
View raw message