Can you use multiple PropertyPlaceholderConfigurers, one with a lower order/higher precedence that determines the location of the actual properties file? I think I tried something like that once; seems like it might work.
Code:
<bean id="propertyConfigurerZero" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location">
<value>actualPropLocation.properties</value>
</property>
<property name="order" value="0" />
<!-- below is needed because this is not the last configurer -->
<property name="ignoreUnresolvablePlaceholders" value="true"/>
</bean>
<bean id="propertyConfigurerOne" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location">
<value>${actualPropLocation}</value>
</property>
<property name="order" value="1" />
</bean>
actualPropLocation.properties:
Code:
#actualPropLocation=file:/usr/local/tomcat/liferay/WEB-INF/jdbc.properties
actualPropLocation=file:///C|/workspace/ext-web/docroot/WEB-INF/jdbc.properties