ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Help needed for Appache ANT
Date Wed, 25 Nov 2009 06:48:57 GMT
Your failure was thinking in "variables" not in "Ant properties".
Later are immutable - once set they cannot change. (exception: <antcontrib:var unset/>)

Jan

>-----Urspr√ľngliche Nachricht-----
>Von: Scot P. Floess [mailto:sfloess@nc.rr.com] 
>Gesendet: Dienstag, 24. November 2009 22:19
>An: Ant Users List
>Betreff: Re: Help needed for Appache ANT
>
>
>Sorry, you will probably need to use 2 properties for each call to 
>dirname...
>
>On Tue, 24 Nov 2009, Scot P. Floess wrote:
>
>>
>> You can run dirname task twice...  First dirname will cut 
>out four, the 
>> second dirname will cut out three...
>>
>> On Tue, 24 Nov 2009, 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-tp26500160p26
500160.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
>>> 
>>> 
>>
>> Scot P. Floess
>> 27 Lake Royale
>> Louisburg, NC  27549
>>
>> 252-478-8087 (Home)
>> 919-890-8117 (Work)
>>
>> Chief Architect JPlate   http://sourceforge.net/projects/jplate
>> Chief Architect JavaPIM  http://sourceforge.net/projects/javapim
>>
>> Architect Keros          http://sourceforge.net/projects/keros
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>
>Scot P. Floess
>27 Lake Royale
>Louisburg, NC  27549
>
>252-478-8087 (Home)
>919-890-8117 (Work)
>
>Chief Architect JPlate   http://sourceforge.net/projects/jplate
>Chief Architect JavaPIM  http://sourceforge.net/projects/javapim
>
>Architect Keros          http://sourceforge.net/projects/keros
>
>---------------------------------------------------------------------
>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