I try to set the log4j.configuration to log4j.xml while I do my unit test. 

As I see in the archive "log4j.configuration=log4j.xml" must be in sys 
properties to redefine the log4j file name. With tomcat (I change the file 
name after deploy the war) It work by setting windows environment var 
JAVA_OPTS with -Dlog4j.configuration=log4j.xml. It try to launch the test 
and include log4j.xml in the unit test resource but it don't seem to work 
the log4j.xml is not find. 
If I rename/change it as log.xml or log4j.properties , it is ok test 
works. 

I have try to set the properties :
maven.junit.sysproperties=log4j.configuration
and
maven.junit.jvmargs=log4j.configuration
with
log4j.configuration=log4j.xml

But during the JUnit test ignore  the file.

Nicolas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to