After upgrading to ANT1.6 from ANT1.5, the same build scripts does not log anything. The log4j.properties used by the script is as shown below:
log4j.rootCategory=INFO,file
log4j.category.org.apache.tools.ant.Project=INFO,file,mail
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.mail=org.apache.log4j.net.SMTPAppender
log4j.appender.mail.layout=org.apache.log4j.HTMLLayout
log4j.appender.mail.Threshold=ERROR
log4j.appender.mail.SMTPHost=localhost
log4j.appender.mail.bufferSize=1
log4j.appender.mail.to=xxx@example.org
log4j.appender.mail.from=xxx@example.org
log4j.appender.mail.subject=Build Failure!
log4j.rootCategory=INFO,file
log4j.category.org.apache.tools.ant.Project=INFO,file,mail
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.mail=org.apache.log4j.net.SMTPAppender
log4j.appender.mail.layout=org.apache.log4j.HTMLLayout
log4j.appender.mail.Threshold=ERROR
log4j.appender.mail.SMTPHost=localhost
log4j.appender.mail.bufferSize=1
log4j.appender.mail.to=xxx@example.org
log4j.appender.mail.from=xxx@example.org
log4j.appender.mail.subject=Build Failure!