Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Log4jListener code & documentation

Log4jListener code & documentation

2003-03-10       - By Jerome Lacoste @ BBC

I was expecting the ant Lo4jListener logger to pick up a
log4j.properties from the ${user.dir} but it apparently doesn't.
I found out I had to put the lo4j.properties in the classpath. [I guess
it is also possible to specify the configuration file using a system
property in the ant build file.]
This was not mentionned anywhere in the ant documentation so I propose
to put a note in the manual. Cf attachment.
Feel free to move this around or put it in a better place.

I also removed an unused and misleading class member in the
src/main/org/apache/tools/ant/listener/Log4JListener.java file. Cf the
other patch.

Cheers,

Jerome


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.