commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Crouch <charles_cro...@hotmail.com>
Subject [configuration] referencing properties across files bug/feature?
Date Fri, 30 Jan 2004 17:48:30 GMT
Hello,
I have a question regarding referencing properties across different 
property files. I've tried using both 
commons-configuration-20030706.202021.jar and 
commons-configuration-20040121.140929.jar. The setup I have is the 
following:

config-override.properties
    baseURL=http://localhost:9080
   
config-default.properties
    baseURL=http://localhost:80
    servletURL=${baseURL}/servlet
   
propertiesConfiguration.xml   
    <configuration>
      <properties 
className="org.apache.commons.configuration.PropertiesConfiguration" 
fileName="config-override.properties"/>
      <properties 
className="org.apache.commons.configuration.PropertiesConfiguration" 
fileName="config-default.properties"/>
    </configuration>


When I call configuration.getString("servletURL") I get 
http://localhost:80/servlet, but what I want is 
http://localhost:9080/servlet.
Is this a bug or a feature? Is there anyway I can achieve the behavior 
I'm after?

Thanks very much.
Charles

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message