ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Stewart" <MStew...@mgtplc.com>
Subject Concatenating a string to a property
Date Fri, 16 Mar 2007 15:56:02 GMT
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message