On Aug 24, 2005, at 12:08 PM, SainTiss wrote:

Forgot to mention that I also tried adding the following to
project.properties:

#setup for junit testing
maven.junit.sysproperties=log4j.configuration
log4j.configuration=log4j.properties

which didn't help either...

Hans

log4j is really confusing. The log4j.configuration property should be a URL, _not_ a path. It doesn't give much of an error when misconfigured - there's nothing to distinguish between not finding a system property, finding a system property that didn't parse as a URL, and being unable to open that URL.

It should work if you change your log4j.configuration line to this:

log4j.configuration=file:${basedir}/log4j.properties

If that doesn't work, try adding "log4j.debug":

maven.junit.sysproperties=log4j.configuration log4j.debug
log4j.configuration=file:${basedir}/log4j.properties
log4j.debug=true

IIRC, it returns a bit more useful information then.

--
Scott Lamb <http://www.slamb.org/>



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

Reply via email to