From dev-return-86459-apmail-ant-dev-archive=ant.apache.org@ant.apache.org Tue Apr 19 18:11:33 2011 Return-Path: X-Original-To: apmail-ant-dev-archive@www.apache.org Delivered-To: apmail-ant-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 026901EFA for ; Tue, 19 Apr 2011 18:11:33 +0000 (UTC) Received: (qmail 17522 invoked by uid 500); 19 Apr 2011 18:04:53 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 17477 invoked by uid 500); 19 Apr 2011 18:04:52 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 17469 invoked by uid 99); 19 Apr 2011 18:04:52 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Apr 2011 18:04:52 +0000 Received: from localhost (HELO mail-fx0-f45.google.com) (127.0.0.1) (smtp-auth username conor, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Apr 2011 18:04:52 +0000 Received: by fxm2 with SMTP id 2so4292773fxm.4 for ; Tue, 19 Apr 2011 11:04:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.17.142 with SMTP id s14mr76834faa.145.1303169110540; Mon, 18 Apr 2011 16:25:10 -0700 (PDT) Received: by 10.223.151.7 with HTTP; Mon, 18 Apr 2011 16:25:10 -0700 (PDT) In-Reply-To: <4DAC992E.3020505@gmx.de> References: <7316BB2C-6E58-4615-A54C-BBF8DC3AC0B4@hibnet.org> <4DAC992E.3020505@gmx.de> Date: Tue, 19 Apr 2011 09:25:10 +1000 Message-ID: Subject: Re: Log Flushing From: Conor MacNeill To: Ant Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable One other possibility is to not bother doing anything in the LogOutputStream when flushed. Conor On Tue, Apr 19, 2011 at 06:03, Antoine Levy-Lambert wrote: > there is an interesting patch in this bug report : > > https://issues.apache.org/bugzilla/show_bug.cgi?id=3D50507 > > Regards, > > Antoine > > On 4/18/2011 4:14 AM, Nicolas Lalev=E9e wrote: >> >> Le 18 avr. 2011 =E0 08:10, Conor MacNeill a =E9crit : >> >>> Nicolas, >>> >>> The change you introduced to address this bug >>> >>> https://issues.apache.org/bugzilla/show_bug.cgi?id=3D50960 >>> >>> really breaks my output when running java processes because the >>> autoflush is flushing at 128 byte boundaries. The log output stream >>> always writes a line when flush is called. >>> >>> Here is an example: >>> >>> =A0 =A0 [java] 15:53:53 WARN =A0- Package Scanner found duplicates for >>> package 'org.w3c.dom' with different ver >>> =A0 =A0 [java] sions. Files: xom-1.1.jar and xmlbeans-2.3.0.jar >>> =A0 =A0 [java] =A0 '/Users/conor/work/fedefault/output/dist/lib/xom-1.1= .jar' >>> =A0 =A0 [java] =A0 '/Users/conor/wor >>> =A0 =A0 [java] k/fedefault/output/dist/lib/xmlbeans-2.3.0.jar' >> >> hum... >> I guess that more than a simple "autoflush" we should have something lik= e >> an "autoflush-on-end-of-line". >> I'll try something. >> >> Nicolas >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > For additional commands, e-mail: dev-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org