title: Could not resolve placeholder from properties file while importing XML
body: <p>I am havinng trouble loading a parameter which is defined in a property file with spring context 3.2.4.RELEASE. My <code>web-application-context.xml</code> looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:context="http://www.springframework.org/schema/context"
      xmlns:task="http://www.springframework.org/schema/task"
      xmlns:tx="http://www.springframework.org/schema/tx"
      xsi:schemaLocation="http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
            http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
          http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
          http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd"&gt;
  
    &lt;context:property-placeholder system-properties-mode="ENVIRONMENT" ignore-resource-not-found="false" ignore-unresolvable="false" location="file:${runtime.dir}/config/properties.txt" /&gt;
  
    &lt;import resource="test-${myBooleanParameter}.xml" /&gt;
  </code></pre>
  
  <p>My <code>properties.txt</code> looks like this:</p>
  
  <pre><code>myBooleanParameter=true
  </code></pre>
  
  <p>In my <code>web.xml</code> is the following snippet:</p>
  
  <pre><code>&lt;context-param&gt;
   &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
   &lt;param-value&gt;classpath:web-application-context.xml&lt;/param-value&gt;
  &lt;/context-param&gt;
  </code></pre>
  
  <p>Unfortunatly I am getting this error:</p>
  
  <pre><code>Unexpected exception parsing XML document from class path resource [web-application-context.xml]; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'myBooleanParameter' in string value "test-${myBooleanParameter}.xml"
  </code></pre>
  
  <p>I looked into the sources he is using and I think the right propertySource is not even registering the <code>PropertySource</code>. This is the List of <code>propertySources</code>in <code>PropertyPlaceholderHelper.parseStringValue</code>:</p>
  
  <p><img src="https://i.stack.imgur.com/jkQM2.png" alt="propertySources">  <a href="https://i.stack.imgur.com/jkQM2.png" rel="nofollow noreferrer">http://i.stack.imgur.com/jkQM2.png</a></p>
  
  <p>Full debug log can be found here: <a href="http://tny.cz/0ec9c339" rel="nofollow noreferrer">http://tny.cz/0ec9c339</a></p>