ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jhudson <lokanathredd...@hotmail.com>
Subject Re: Help needed for Appache ANT
Date Sat, 28 Nov 2009 07:34:57 GMT


Hi,

Ant "dirname" task resolved my issue. Thank you so much.





jhudson wrote:
> 
> Hi 
> 
> I have below requirement in ANT:-
> 
> variable1 = ${basedir}
> 
> now let us say from above statement "variable1" got the value  
> C:\one\two\three\four
> 
> now i want to cut two levels from above path (so "C:\one\two" will be the
> result after cut) and i want to reassign the value to varibale1. 
> 
> So, if i give echo ${variable1} it should give the path C:\one\two
> 
> Could someone please help me on how to get it.
> 

-- 
View this message in context: http://old.nabble.com/Help-needed-for-Appache-ANT-tp26500160p26545438.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


Mime
View raw message