ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@gmail.com>
Subject Re: How to get the last folder name?
Date Fri, 03 Sep 2010 14:56:23 GMT

On Sep 3, 2010, at 9:45 AM, P.N. wrote:

> Thank You! Works partly, as it returns the last child in the last subfolder instead of
the last direct child.
> 
> Also, <fileset> seems not to be the correct element for matches (e.g. "xy*").
> 

To get directories only, use a dirset.  To get direct children only, use includes="*".

-Matt

> Regards
> 
> Peter
> 
> 
> Matt Benson schrieb:
>> Your example should work if you only use ${toString:_lastname}.  References are not
properties.
>> 
>> HTH,
>> Matt
>> 
>> On Sep 3, 2010, at 9:27 AM, P.N. wrote:
>> 
>>> 
>>> Hello!
>>> 
>>> I want to get the path to the last child folder in some parent directory. Tried
this:
>>> 
>>>        <path id="_lastname">
>>> ...
> 
> 
> ---------------------------------------------------------------------
> 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