Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 73007 invoked from network); 5 Jul 2000 02:28:21 -0000 Received: from e23.nc.us.ibm.com (32.97.136.229) by locus.apache.org with SMTP; 5 Jul 2000 02:28:21 -0000 Received: from southrelay02.raleigh.ibm.com (southrelay02.raleigh.ibm.com [9.37.3.209]) by e23.nc.us.ibm.com (8.9.3/8.9.3) with ESMTP id WAA17550 for ; Tue, 4 Jul 2000 22:06:53 -0500 From: rubys@us.ibm.com Received: from d54mta04.raleigh.ibm.com (d54mta04.raleigh.ibm.com [9.67.228.36]) by southrelay02.raleigh.ibm.com (8.8.8m3/NCO v4.9) with SMTP id WAA56530 for ; Tue, 4 Jul 2000 22:28:21 -0400 Received: by d54mta04.raleigh.ibm.com(Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) id 85256913.000D9416 ; Tue, 4 Jul 2000 22:28:18 -0400 X-Lotus-FromDomain: IBMUS To: ant-dev@jakarta.apache.org Message-ID: <85256913.000D9292.00@d54mta04.raleigh.ibm.com> Date: Tue, 4 Jul 2000 22:23:23 -0400 Subject: RE: cvs commit: jakarta-ant/src/main/org/apache/tools/ant /taskdefs TaskOutputStream.java Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Conor MacNeill wrote: > > Sam, > > Sorry - should have checked the package for TaskOutputStream. I put it > where I thought it should go. As this is not supposed to be specific > to a single task, I view it as part of the ant infrastructure and > believe it should be in the core package rather than the taskdefs > package. Don't worry about it...and if you don't like the way I fixed it, fix it right. > Also I don't really agree with the concept of a "current task". When I > can get async tasks in there may be more than one current task. I would > rather see each task identify itself when logging messages. > > Thoughts? I'm not thrilled with Target modifying Project.currentTask directly myself. Suggestion: since all tasks inherit from Task, why not introduce a log method which simply calls project.log adding a "this" pointer. Most code retains its simplicity (actually, gets even simpler be removing the "project."), and addresses the scoping and synchronization issues. - Sam Ruby