If Eclipse (or any other test environment) didn’t add test-classes to the class 
path how would it find your test classes. They would normally be first in the 
class path so that files you want to override for testing are picked up. I 
suspect this is why it is picking up a log4j.properties there instead of the 
classes directory. In any case, this has little, if anything, to do with Log4j.

Ralph

> On Jun 29, 2017, at 1:36 PM, Bruce Wen <crest....@gmail.com> wrote:
> 
> Hi All,
> I am wondering how classpath is decided when run TestNG suite xml file in 
> Eclipse. Why it add target/test-classes in classpath and LogManager load 
> log4j.properties from there rather than target/classes folder.
> I hope somebody can help clarify the root reason for that. Thanks!
> Bruce Wen



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org

Reply via email to