You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Rebhan, Gilbert" <Gi...@huk-coburg.de> on 2007/02/09 11:52:28 UTC

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


RE: dirset > get eldest | youngest dir ?

Posted by "Rebhan, Gilbert" <Gi...@huk-coburg.de>.
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