I think there's a JIRA on the surefire plugin which gives precedence
to the main classes over the test classes - hence the log4j.properties
in src/main/resources is used before the src/test/resources's file is
loaded.
On 5/12/06, Ido M. Tamir <[EMAIL PROTECTED]> wrote:
Hi,
I am using maven 2.0.4
I have log4j.properties file in src/test/resources and
src/main/resources.
after compilation directory structure:
-- test-classes
| |-- hibernate.cfg.xml
| |-- import.properties
| |-- log4j.properties
| `-- org
The settings in this file are ignored in unit tests
and other settings (assembly...).
When I remove both files log4j doesn't even
complain.
The log level always seems to be info.
This is also true for unit test run from
eclipse (I use mvn eclipse:eclipse)
This is independent of having commons-logging
as a dependency or not.
thank you very much for your suggestions
ido
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
______________________________________
Cheers,
Arik Kfir [EMAIL PROTECTED]
Linux user, number 415067 - http://counter.li.org/
http://corleon.dnsalias.org