hej,
while using emma als an ant task I have the following message:
[emmajava] (...) Caused by:
Logging service configuration file: log4j-config.xml or log4j-config.properties not found.
[emmajava] java.lang.NullPointerException
I have 5 source folders (the first two for domain - domain classes and src, the second two for test - test classes and src, and the last one for all *.jar files - including emma's files).
The files log4j-config.xml I have in classes's folders.
Where should I put the log4j-config.xml file that it could be seen by emma?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
EMMA does not need log4j-config.xml because it does not use log4j at all.
So, I would guess the exception is coming from your app code, not from EMMA. I recommend you get your code working without code coverage first and then try <emmajava> after that. Also, when reporting problems, please print full stack traces (run ant -debug ... if necessary) if you want better help.
Vlad.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hej,
while using emma als an ant task I have the following message:
[emmajava] (...) Caused by:
Logging service configuration file: log4j-config.xml or log4j-config.properties not found.
[emmajava] java.lang.NullPointerException
I have 5 source folders (the first two for domain - domain classes and src, the second two for test - test classes and src, and the last one for all *.jar files - including emma's files).
The files log4j-config.xml I have in classes's folders.
Where should I put the log4j-config.xml file that it could be seen by emma?
EMMA does not need log4j-config.xml because it does not use log4j at all.
So, I would guess the exception is coming from your app code, not from EMMA. I recommend you get your code working without code coverage first and then try <emmajava> after that. Also, when reporting problems, please print full stack traces (run ant -debug ... if necessary) if you want better help.
Vlad.