[Asterisk-java-users] hard runtime dependency on commons-logging removed
Brought to you by:
srt
From: Stefan R. <sr...@re...> - 2005-03-31 23:01:54
|
Hi Alex, > After further investigation I think the > easiest way to go is to use a very thin wrapper around commons-logging's > LogFactory that determines via reflection if the commons-logging classes > are available. If they are available on the classpath a commons-logging > Log object (in fact a proxy for it) will be returned otherwise a NullLog > will be returned that does nothing. > So we will still have a compile time dependency on commons-logging but > at runtime logging is just switched off if commons-logging is not > available. I just implemented this as described before. If commons-logging is available it will be used, if not no logging is done. So now you only need to include the asterisk-java jar file if you dont need any logging. Please check the latest snapshot available from http://maven.reucon.com/maven/asterisk-java/distributions/ that includes this change. =Stefan |