candlepin/candlepin — pull request #252 by jmrodri (2013-05-13 20:03:27+00:00)
Title: put target/resources at the front of the classpath.

We've had a series of folks wanting to log from the rules.js file.
Making changes to log4j.properties has proved to be useless. I added
-Dlog4j.debug to the jvm_args for testing to see what was going on
and it turns out log4j was picking up the log4j.properties from:
GUICE-PERSIST!!!!

There's a bug for that already:

https://code.google.com/p/google-guice/issues/detail?id=623

No matter what we do buildr test will never pick up our log4j.properties
unless we put target/resources at the beginning of the classpath. By
default buildr adds it to the end.

This does not affect the application because we forcibly configure
log4j in LoggingConfig.java.

In order to see debug logging from javascript rules add this
to your log4j.properties:

log4j.logger.org.candlepin.policy.js=DEBUG