Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 63308 invoked from network); 21 Apr 2005 11:27:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Apr 2005 11:27:13 -0000 Received: (qmail 18776 invoked by uid 500); 21 Apr 2005 11:27:23 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 18730 invoked by uid 500); 21 Apr 2005 11:27: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 18715 invoked by uid 500); 21 Apr 2005 11:27:22 -0000 Received: (qmail 18712 invoked by uid 99); 21 Apr 2005 11:27:22 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 21 Apr 2005 04:27:22 -0700 Received: (qmail 63293 invoked by uid 1539); 21 Apr 2005 11:27:08 -0000 Date: 21 Apr 2005 11:27:08 -0000 Message-ID: <20050421112708.63292.qmail@minotaur.apache.org> From: peterreilly@apache.org To: ant-cvs@apache.org Subject: cvs commit: ant/src/main/org/apache/tools/ant/taskdefs MacroInstance.java X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N peterreilly 2005/04/21 04:27:08 Modified: src/main/org/apache/tools/ant/taskdefs MacroInstance.java Log: just change the exception and not make a new exception when hiding the macro Revision Changes Path 1.35 +2 -1 ant/src/main/org/apache/tools/ant/taskdefs/MacroInstance.java Index: MacroInstance.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/MacroInstance.java,v retrieving revision 1.34 retrieving revision 1.35 diff -u -r1.34 -r1.35 --- MacroInstance.java 21 Apr 2005 09:49:55 -0000 1.34 +++ MacroInstance.java 21 Apr 2005 11:27:08 -0000 1.35 @@ -384,7 +384,8 @@ throw ProjectHelper.addLocationToBuildException( ex, getLocation()); } else { - throw new BuildException(ex.getMessage(), ex); + ex.setLocation(getLocation()); + throw ex; } } finally { presentElements = null; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org