Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 97687 invoked from network); 1 Jul 2004 18:20:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Jul 2004 18:20:36 -0000 Received: (qmail 84818 invoked by uid 500); 1 Jul 2004 18:20:45 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 84738 invoked by uid 500); 1 Jul 2004 18:20:44 -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 84719 invoked by uid 99); 1 Jul 2004 18:20:43 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [134.132.72.99] (HELO junior.lgc.com) (134.132.72.99) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 01 Jul 2004 11:20:42 -0700 Received: from lgchvw01.lgc.com (lgchvw01.lgc.com [134.132.93.107]) by junior.lgc.com (8.11.7/8.11.3) with SMTP id i61IJ6808848; Thu, 1 Jul 2004 13:19:06 -0500 (CDT) Received: from 134.132.93.152 by lgchvw01.lgc.com (InterScan E-Mail VirusWall NT); Thu, 01 Jul 2004 13:20:11 -0500 Received: by lgchexchbh.ad.lgc.com with Internet Mail Service (5.5.2657.72) id <3BMR8B9Q>; Thu, 1 Jul 2004 13:20:11 -0500 Message-ID: From: Dominique Devienne To: "'Christian Knorr '" , "'dev@ant.apache.org '" Subject: RE: SubAnt output Date: Thu, 1 Jul 2004 13:20:10 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) List-Subscribe: Content-Type: text/plain X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Cool. Thanks for fixing this. Even though it's a bit late, I would like this patch to make it to 1.6.2. Does anyone object? But on a different note, even though I looked at the patch, I'm not sure I understand why adding these methods fixes the problem (as was involved in writing SubAnt.java initially). I would have thought that executing the nested Ant would have been enough to properly nest the messages. Could someone savvy with the Ant logging mechanism explain/describe this mechanism and why this patch fixes the issue here!? Christian? Conor? Stefan? Antoine? Peter? Anyone? Thanks, --DD -----Original Message----- From: Christian Knorr To: dev@ant.apache.org Sent: 7/1/2004 7:00 AM Subject: SubAnt output Hi, I am new to this list. By browsing the archives I could not find anything related to my problem but forgive me if it has already been mentioned: In our hierarchical build structure we use the SubAnt task to delegate all tasks to our components specific build-scripts. In combination with CruiseControl we realized that the XML output generated by the XMLLogger does not represent a correct correlation of messages to tasks when using SubAnt: Buildfile: build.xml Obviously all the 'message' elements should be children of the 'javac task' element. It seems to me that the SubAnt task does not take care of the new project which is being created by its child Ant tasks. As a quick fix for us I patched the SubAnt task to work similar as the Ant task does. But instead of the 'project' variable I made the 'ant' variable a field which is only valid during execution of the associated project. Please let me know if there is anything else I might have missed or if this is the way to go. Feel free to apply the patch (which has been performed on Ant 1.6.1) to the Ant sources (although I guess there is a much cleaner way to accomplish this). Cheers, Christian P.S.: In addition to the patch file I also added the build files to reproduce the erroneous behaviour. ___________________________________________________________ EADS SPACE Transportation - TE 55 - Phone: +49-421-539-5673 <> <> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org