ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Klara Ward <kl...@appeal.se>
Subject nested property name
Date Tue, 25 Mar 2003 17:03:33 GMT
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


Mime
View raw message