You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by GokulHCL <go...@gmail.com> on 2010/05/27 14:21:28 UTC

Nesting of Braces

Hi 
I am using ant 1.7. I have requirement to resolve two properties dynamically
as shown below.

${test.display.${dynamic}}

For Example:

I am loading three properties from a properties file say 

test.display.one=FIRST
test.display.two=SECOND
test.display.three=THIRD

The "dynamic" property will have the values such as one, two, three, based
on this dynamic value I need to extract the values.

Thanks for your help in advance.
Gokul
-- 
View this message in context: http://old.nabble.com/Nesting-of-Braces-tp28693161p28693161.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


AW: Nesting of Braces

Posted by Ja...@rzf.fin-nrw.de.
http://ant.apache.org/faq.html#propertyvalue-as-name-for-property

Jan 

>-----Ursprüngliche Nachricht-----
>Von: GokulHCL [mailto:gokul.go@gmail.com] 
>Gesendet: Donnerstag, 27. Mai 2010 14:21
>An: user@ant.apache.org
>Betreff: Nesting of Braces
>
>
>Hi 
>I am using ant 1.7. I have requirement to resolve two 
>properties dynamically
>as shown below.
>
>${test.display.${dynamic}}
>
>For Example:
>
>I am loading three properties from a properties file say 
>
>test.display.one=FIRST
>test.display.two=SECOND
>test.display.three=THIRD
>
>The "dynamic" property will have the values such as one, two, 
>three, based
>on this dynamic value I need to extract the values.
>
>Thanks for your help in advance.
>Gokul
>-- 
>View this message in context: 
>http://old.nabble.com/Nesting-of-Braces-tp28693161p28693161.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
>
>

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


Re: Nesting of Braces

Posted by adam kopecky <ad...@seznam.cz>.
You can use 
<a href="http://ant-contrib.sourceforge.net/tasks/tasks/propertycopy.html">PropertyCopy task</a>

Regards


> ------------ Původní zpráva ------------
> Od: GokulHCL <go...@gmail.com>
> Předmět: Nesting of Braces
> Datum: 27.5.2010 14:22:01
> ----------------------------------------
> 
> Hi 
> I am using ant 1.7. I have requirement to resolve two properties dynamically
> as shown below.
> 
> ${test.display.${dynamic}}
> 
> For Example:
> 
> I am loading three properties from a properties file say 
> 
> test.display.one=FIRST
> test.display.two=SECOND
> test.display.three=THIRD
> 
> The "dynamic" property will have the values such as one, two, three, based
> on this dynamic value I need to extract the values.
> 
> Thanks for your help in advance.
> Gokul
> -- 
> View this message in context:
> http://old.nabble.com/Nesting-of-Braces-tp28693161p28693161.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
> 
> 
> 
> 

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