ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allwicher, Klaus" <>
Subject Logging questions
Date Thu, 06 Oct 2005 13:24:51 GMT
I have some questions regarding the Log4J logging configuration of ANT,
which I didn't get answered by any other resources:
1. I had a problem with the Log4J configuration. I got the error message:
"Listener attempted to access System.out - infinite loop terminated"
After some investigations I found out, that I get this message, when I
invoke a JAVA program, which itself uses Log4J for logging. After some tests
I observed, that this error does not occur anymore, when I explicitly set
the classpath, i.e. use
<java classname="..." 
        failonerror="true" >    
instead of
<java classname="..." 

        failonerror="true" >    
My question: Why ? Is this a bug (I think so) or what went wrong ?
2. After the configuration of Log4J I still get the warning and error logs
from the tasks in the default format (additional to the configured format):
INFO: Import 'work/data.subscriber.csv' into the database ...
     [exec] Result: 2
ERROR: Result: 2
     [echo] Warnings during database import. Please check
WARN: Warnings during database import. Please check log/1255/SUBSCRIBER.log
  <echo message="Import '@{datafile}' <mailto:'@{datafile}'>  into the
database ..." level="info" />
  <exec executable="sqlldr.exe" resultproperty="dblib.returnCode"
outputproperty="none" >  
   <env key="NLS_LANG" value=".UTF8"/>
   <arg value="userid=${db.connection}" />
   <arg value="control=${dblib.ctlfile}" />
   <arg value="log=${dblib.logfile}" />
The configuration is:

Again the questions: What happens and why ?
Kind regards

Klaus Allwicher
ScanSoft Aachen GmbH
Kackertstrasse 10
D-52072 Aachen
Tel. +49 (0)241 8871 348
Fax. +49 (0)241 8871 140


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message