Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 27429 invoked from network); 29 Apr 2004 08:17:55 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 29 Apr 2004 08:17:55 -0000 Received: (qmail 17520 invoked by uid 500); 29 Apr 2004 08:17:23 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 17468 invoked by uid 500); 29 Apr 2004 08:17:23 -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 17334 invoked from network); 29 Apr 2004 08:17:21 -0000 Received: from unknown (HELO corvil.com) (213.94.219.177) by daedalus.apache.org with SMTP; 29 Apr 2004 08:17:21 -0000 Received: from corvil.com (angel.local.corvil.com [172.18.1.171]) by corvil.com (8.12.9/8.12.5) with ESMTP id i3T8HVo7038103 for ; Thu, 29 Apr 2004 09:17:31 +0100 (IST) (envelope-from peter.reilly@corvil.com) Message-ID: <4090BAA3.6050900@corvil.com> Date: Thu, 29 Apr 2004 09:19:47 +0100 From: Peter Reilly User-Agent: Mozilla Thunderbird 0.5 (X11/20040208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Developers List Subject: Re: Error reporting pb with References: <830BF4914C3C4B4EB1C438D93ABF897A67CE78@lgchexch011.ad.lgc.com> In-Reply-To: <830BF4914C3C4B4EB1C438D93ABF897A67CE78@lgchexch011.ad.lgc.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I have not been able to duplicate this with ant head of ant 1.6.1. I tried the following: And tried to get the javac to fail by changing the permission of the classes directory, and also by moving the javac program. In both cases the stacktrace was available with a -verbose flag to ant. Peter Dominique Devienne wrote: >I have a that wraps a which in this case forks. The >forked javac fails, but the 1.6 code for MacroInstance seems to eat up the >stack traces for the nested exception, and displays only the message of the >outermost exception. I suspect that the exception here is a BuildException, >which wraps the IOException and it's message, which would tell me exactly >why it failed. > >I'll try to temporarily copy the content of the in place of the >macro use itself, to get a better error message, but it would be nice it >using was not behaving differently than the same Ant code running >outside a macrodef. > >Thanks, --DD > >BUILD FAILED >C:\acme\build.xml:243: Following error occured while executing this line >C:\acme\build.xml:233: Error running javac.exe compiler > at >org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper >.java:574) > at >org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:345) > at >org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306) > at org.apache.tools.ant.Task.perform(Task.java:401) > at org.apache.tools.ant.Target.execute(Target.java:338) > at org.apache.tools.ant.Target.performTasks(Target.java:365) > at org.apache.tools.ant.Project.executeTarget(Project.java:1237) > at org.apache.tools.ant.Project.executeTargets(Project.java:1094) > at org.apache.tools.ant.Main.runBuild(Main.java:669) > at org.apache.tools.ant.Main.startAnt(Main.java:220) > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215) > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90) > >--------------------------------------------------------------------- >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