Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 31217 invoked from network); 14 Jan 2005 10:12:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Jan 2005 10:12:38 -0000 Received: (qmail 69392 invoked by uid 500); 14 Jan 2005 10:12:34 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 69263 invoked by uid 500); 14 Jan 2005 10:12:34 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 69231 invoked by uid 500); 14 Jan 2005 10:12:33 -0000 Received: (qmail 69212 invoked by uid 99); 14 Jan 2005 10:12:33 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 14 Jan 2005 02:12:33 -0800 Received: (qmail 31121 invoked by uid 1146); 14 Jan 2005 10:12:31 -0000 Date: 14 Jan 2005 10:12:31 -0000 Message-ID: <20050114101231.31120.qmail@minotaur.apache.org> From: bodewig@apache.org To: ant-cvs@apache.org Subject: cvs commit: ant/src/main/org/apache/tools/ant Project.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N bodewig 2005/01/14 02:12:31 Modified: src/main/org/apache/tools/ant Tag: ANT_16_BRANCH Project.java Log: merge Revision Changes Path No revision No revision 1.154.2.15 +16 -5 ant/src/main/org/apache/tools/ant/Project.java Index: Project.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/Project.java,v retrieving revision 1.154.2.14 retrieving revision 1.154.2.15 diff -u -r1.154.2.14 -r1.154.2.15 --- Project.java 14 Dec 2004 23:48:00 -0000 1.154.2.14 +++ Project.java 14 Jan 2005 10:12:31 -0000 1.154.2.15 @@ -1,5 +1,5 @@ /* - * Copyright 2000-2004 The Apache Software Foundation + * Copyright 2000-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -2013,9 +2013,20 @@ } synchronized (this) { if (loggingMessage) { - throw new BuildException("Listener attempted to access " - + (priority == MSG_ERR ? "System.err" : "System.out") - + " - infinite loop terminated"); + /* + * One of the Listeners has attempted to access + * System.err or System.out. + * + * We used to throw an exception in this case, but + * sometimes Listeners can't prevent it(like our own + * Log4jListener which invokes getLogger() which in + * turn wants to write to the console). + * + * @see http://marc.theaimsgroup.com/?t=110538624200006&r=1&w=2 + * + * We now (Ant 1.7 and 1.6.3) simply swallow the message. + */ + return; } try { loggingMessage = true; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org