| nested property name | nested property name 2003-03-25 - By Dominique Devienne
This is by design. Use ant-contrib's <propertycopy> (or <copyproperty> I never know) to achieve a similar effect. --DD
-----Original Message----- From: Klara Ward [mailto:klara@(protected)] Sent: Tuesday, March 25, 2003 11:04 AM To: Ant Users List Subject: nested property name
Is there a reason why: <property file="${specjbbScriptsHome}/specjbb.properties"/> <echo message="${timeoutSeconds.${level}}"/> doesn't work? this code: <property file="${specjbbScriptsHome}/specjbb.properties"/> <echo message="${timeoutSeconds.${level}}"/> <echo message="${timeoutSeconds.sanity}"/> <echo message="${level}"/> <echo message="${timeoutProperty}"/> and the contents in specjbb.properties: timeoutSeconds.sanity=10
gets this result: [echo] ${timeoutSeconds.${level}} [echo] 10 [echo] sanity [echo] timeoutSeconds.sanity
The ugly workaround is some sort if condition construction, but I don't want that....
Klara
|
|
 |