essobedo opened a new pull request #6996:
URL: https://github.com/apache/camel/pull/6996


   Fix for https://issues.apache.org/jira/browse/CAMEL-17574 (part 2)
   
   ## Motivation
   
   While migrating the tests of the samples, I realized that it was not good 
enough because we had to call explicitly 
`configure().withBasePackageScan(mainClass.getPackageName())` when a main class 
is specified which is not convenient. Moreover, it could be also interesting to 
support natively custom properties file located directly in the default package.
   
   ## Modifications
   
   * Add a new method  `getMainClass()` to be able to provide the main class 
easily when it is needed
   * Modify the default behavior of `getPropertyPlaceholderLocations()` to 
generate a list of locations corresponding to the package of the test class or 
the default package when `getPropertyPlaceholderFileName()` returns a not null 
value
   * Add some log messages to indicate which property placeholder locations are 
used
   * Add log4j as test dependencies to get the log messages into 
`target/camel-test-main.log`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to