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:[EMAIL PROTECTED] 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to