You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by akentner <ak...@gmx.net> on 2009/09/04 12:03:14 UTC

search directories and putting search result in a variable

Hi there, 

I'm a ant newbie. I've already search for my topic, but I haven't found my
problem.

So my problem:

I have a tmp directory where other directories have been created (names are
hashes). In an ant job, how can I find the last generated hash directory and
put the result in a variable, so i can use it as dir parameter in <exec
dir="...." ..../>

Thanks for help

Greets, Alex
-- 
View this message in context: http://www.nabble.com/search-directories-and-putting-search-result-in-a-variable-tp25291655p25291655.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Re: search directories and putting search result in a variable

Posted by Francis GALIEGUE <fg...@one2team.com>.
On Fri, Sep 4, 2009 at 12:03, akentner<ak...@gmx.net> wrote:
>
> Hi there,
>
> I'm a ant newbie. I've already search for my topic, but I haven't found my
> problem.
>
> So my problem:
>
> I have a tmp directory where other directories have been created (names are
> hashes). In an ant job, how can I find the last generated hash directory and
> put the result in a variable, so i can use it as dir parameter in <exec
> dir="...." ..../>
>
> Thanks for help
>

>From what I can see, you can do this with ant-contrib's <timestampselector>.

It takes path elements as an argument, though, so I don't know whether
it takes directories into account.

-- 

Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
fge@one2team.com
40 avenue Raymond Poincaré
75116 Paris

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