Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.12.1
-
None
-
Unknown
Description
When you add a location based on system variable in a propertyPlaceholder, the ignoreMissingLocation protect you from a missing file but not from a missing system variable (or env as well).
Ex :
<propertyPlaceholder ignoreMissingLocation="true" location="classpath:camel-property.properties, file:///${camel-property.config}" />
This configuration failed to load context during unit tests, because camel-property.config system variable is not set. Spring handle this with the ignore-resource-not-found attribute, which is according to me the equivalent of ignoreMissingLocation.