]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1692] Archiva should allow PropertyPlaceholderConfigurer in applicationContext.xml
authorOlivier Lamy <olamy@apache.org>
Thu, 11 Oct 2012 22:43:27 +0000 (22:43 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 11 Oct 2012 22:43:27 +0000 (22:43 +0000)
Submitted by Charles Kim.

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1397346 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-policies/src/main/resources/META-INF/spring-context.xml

index c02cbc097f729ffbb93ea3e35e9604c01a9522ca..3cf02da6abb7b07ea054d3e0471d7070a15581f6 100644 (file)
            http://www.springframework.org/schema/context/spring-context-3.0.xsd"
        default-lazy-init="true">
 
-  <context:property-placeholder system-properties-mode="FALLBACK"/>
+  <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+       <property name="ignoreUnresolvablePlaceholders" value="true"/>
+       <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_FALLBACK"/>
+  </bean>
   <context:annotation-config/>
   <context:component-scan base-package="org.apache.archiva.policies"/>
 
@@ -51,4 +54,4 @@
     <!-- 30 minutes = 1800 seconds  -->
     <property name="timeToLiveSeconds" value="1800"/>
   </bean>
-</beans>
\ No newline at end of file
+</beans>