Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 94428 invoked from network); 19 Oct 2000 09:40:27 -0000 Received: from public.ndh.net (HELO public.ndh.com) (195.94.90.21) by locus.apache.org with SMTP; 19 Oct 2000 09:40:27 -0000 Received: from sbodewig.bost.de ([195.227.98.11]) by public.ndh.com (8.9.3/8.8.0) with ESMTP id LAA15742 for ; Thu, 19 Oct 2000 11:40:23 +0200 (MET DST) Received: (from bodewig@localhost) by sbodewig.bost.de (8.9.3/8.9.3) id LAA03529; Thu, 19 Oct 2000 11:40:23 +0200 X-Authentication-Warning: sbodewig.bost.de: bodewig set sender to bodewig@bost.de using -f To: ant-user@jakarta.apache.org Subject: Re: Logging javac error output References: From: Stefan Bodewig Date: 19 Oct 2000 11:40:22 +0200 In-Reply-To: r.merkle@siep.shell.com's message of "Thu, 19 Oct 2000 09:59:47 +0200" Message-ID: Lines: 23 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N >>>>> "rm" == r merkle writes: rm> A workaround appears to be using: value="classic"/> Then the messages are correct and logged rm> correctly to the logfile. This one finally pushed me into the right direction. When doing a "classic" compile, Ant hands the compiler a OutputStream to write its messages to (sun.tools.javac.Main has a constructor taking an OutputStream argument). Unfortunately this functionality (writing to a user supplied stream) doesn't exist in the modern compiler, at least a quick reflection test of all constructors and methods of com.sun.tools.javac.Main doesn't provide anything useful. The only workaround I see is to change System.err and System.out prior to invoking the compiler and resetting it afterwards, but maybe somebody with access to the source of the modern compiler knows a better way to achieve this? Stefan