I am using Play framework 2.3 I have an external Play plugin that uses spring to talk to an LDAP server using Spring-Ldap.
At the moment I placed my configuration file to /conf fodlder called ldap.properties.
in developer mode this works well. Spring loads it's own context like this ->
<context-source
url="${ldap.bind.url}"
base="${ldap.bind.base}"
username="${ldap.bind.username}"
password="${ldap.bind.password}" />
<bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:ldap.properties</value>
</list>
</property>
<property name="ignoreUnresolvablePlaceholders" value="true"/>
</bean>
and as you can tell I am using the ldap.properties from the classpath.
When I create a play distribution the ldap.properties file is copied to the jar file of the main project.
What parameters do I need to pass into Play to ignore the ldap.properties file in the JAR and use the one which is for the live server at a given location?