IgnoreMissingLocation is for ignoring a location of the properties if it cannot be found, such as a file not found etc.
It is not for ignoring missing keys. What you are looking for is something like a ignoreUnresolvablePlaceholders=true to ignore unresolved keys. Spring has such an option, we could add similar to Camel itself as well. Fell free to log a JIRA ticket On Thu, Oct 31, 2013 at 12:01 PM, Sébastien BROUSSE <[email protected]> wrote: > Hi, > > In my camel context I have declared a "propertyPlaceholder" wich load > a local properties file and a system variable to be able to override > by an external configuration. > > But when launching unit tests, I failed to load the context beacause > It check the presence of the system variable even if I set the > ignoreMissingLocation to true. > > Sample configuration & code is joined, just launch "mvn test". > > Can you confirm me, if it is an issue or did I misunderstand something ? > > Thx -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
