I would like to conditionally/dynamically display the <value>classpath:/resources/three.sql</value>
value node in my spring xml configuration based on a system property, i.e. ${env}. Something like if ${env} is dev then include it else exclude it or if thats not easy then just conditionally pass in the all the value nodes from a system property. Is this possible?
<bean id="myBean"
class="com.testMyBean">
<property name="scripts">
<list>
<value>classpath:/resources/one.sql</value>
<value>classpath:/resources/two.sql</value>
<value>classpath:/resources/three.sql</value>
</list>
</property>
</bean>