Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 87868 invoked from network); 28 Apr 2004 14:06:43 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 28 Apr 2004 14:06:43 -0000 Received: (qmail 85675 invoked by uid 500); 28 Apr 2004 14:06:14 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 85633 invoked by uid 500); 28 Apr 2004 14:06:13 -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 85557 invoked from network); 28 Apr 2004 14:06:13 -0000 Received: from unknown (HELO junior.lgc.com) (134.132.72.99) by daedalus.apache.org with SMTP; 28 Apr 2004 14:06:13 -0000 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 i3SE54417510 for ; Wed, 28 Apr 2004 09:05:04 -0500 (CDT) Received: from 134.132.93.152 by lgchvw01.lgc.com (InterScan E-Mail VirusWall NT); Wed, 28 Apr 2004 09:06:08 -0500 Received: by lgchexchbh.ad.lgc.com with Internet Mail Service (5.5.2657.72) id ; Wed, 28 Apr 2004 09:06:08 -0500 Message-ID: <830BF4914C3C4B4EB1C438D93ABF897A67CE78@lgchexch011.ad.lgc.com> From: Dominique Devienne To: "'Ant Developers List'" Subject: Error reporting pb with Date: Wed, 28 Apr 2004 09:06:07 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain 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 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