xliang (1) [Avatar] Offline
#1
After upgrading Ant to version 1.6.1, the script does not log anything to log files, or does not create any log files.

The scripts uses org.apache.tools.ant.listener.CommonsLoggingListener and log4j.properties file is as shown below:

log4j.rootCategory=INFO,file
log4j.category.org.apache.tools.ant.Project=INFO,file,mail
#,socket

log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.layout=org.apache.log4j.TTCCLayout
log4j.appender.file.file=./logs/build.log
log4j.appender.file.maxBackupIndex=3
log4j.appender.file.maxFileSize=100KB

log4j.appender.socket=org.apache.log4j.net.SocketAppender
log4j.appender.socket.Threshold=ERROR
log4j.appender.socket.RemoteHost=localhost
log4j.appender.socket.Port=4445

log4j.appender.mail=org.apache.log4j.net.SMTPAppender
log4j.appender.mail.layout=org.apache.log4j.HTMLLayout
log4j.appender.mail.Threshold=ERROR,INFO
log4j.appender.mail.SMTPHost=mail
log4j.appender.mail.bufferSize=1
log4j.appender.mail.to=xxx@xxxx.com
log4j.appender.mail.to=xxx@xxxx.com
log4j.appender.mail.subject=Build Failure!

Can anyone tell what is the problem?

Thanks
ErikHatcher (211) [Avatar] Offline
#2
Re: problem problem after upgrading to 1.6.1
Please take this issue up on the Ant user list. It is not JDwA related, and so should be moved to a more appropriate forum.