nabsha / mule4-property-placeholder

Mule 4 Property Placeholder Provider
MIT License
2 stars 4 forks source link

property placeholder on cloud #7

Open mlcl-nehaljain-zz opened 3 years ago

mlcl-nehaljain-zz commented 3 years ago

@nabsha We have been trying to use this property placeholder on cloud, where we have observed ignore-resource-not-found = true is not being reflected and component errors out if it does not find any specified file in location. Is this a known issue you faced before for this property placeholder?

nabsha commented 3 years ago

@mlcl-nehaljain, Can you compare your usecase with following test please,

https://github.com/nabsha/mule4-property-placeholder/blob/master/src/test/java/com/github/nabsha/mule4/property/provider/Mule4PropertyPlaceholderOperationsTestCase.java

In particular, it uses following config. Is it something what you are trying to do?

    <mule4-property-placeholder:config name="config" location="basicTest/config.properties,basicTest/secret.properties,/notfound.properties" ignore-resource-not-found="true" ignore-unresolvable="false" file-encoding="UTF-8" />

    <object name="testObject" class="com.github.nabsha.mule4.property.provider.TestObject">
        <property key="valueFromProperty" value="${testKey}" />
        <property key="overrideProperty" value="${overrideKey}" />
    </object>