It looks like you already have the value set. Once a property is set, you can't unset or reset it. (Unless you use a 3'rd party task, like ant-contrib's var task)
Where did the 'b4usony' come from? Did you set it earlier? remote.jboss.jndi.port.b4usony -----Original Message----- From: Mike Stewart [mailto:[EMAIL PROTECTED] Sent: Friday, March 16, 2007 8:56 AM To: [email protected] Subject: Concatenating a string to a property Hi, I am trying to get a value from a property that is defined in the build.properties file - remote.jboss.jndi.port.server1=17031 remote.jboss.server=server1 The remote.jboss.server varies depending on which client is being built, I tried the definition below but it is performing text substitution. <property name="port.number" value="remote.jboss.jndi.port.${remote.jboss.server}" /> <echo message="the port number is ${port.number} ${remote.jboss.jndi.port.server1}" /> When run via Ant the output is the port number is remote.jboss.jndi.port.b4usony 17031 Any ideas on how to get the value? Mike S. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
