Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 25537 invoked from network); 6 Mar 2006 16:56:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Mar 2006 16:56:35 -0000 Received: (qmail 28100 invoked by uid 500); 6 Mar 2006 16:57:15 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 28026 invoked by uid 500); 6 Mar 2006 16:57:14 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 27955 invoked by uid 500); 6 Mar 2006 16:57:14 -0000 Received: (qmail 27896 invoked by uid 99); 6 Mar 2006 16:57:14 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Mar 2006 08:57:14 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 06 Mar 2006 08:57:13 -0800 Received: (qmail 24244 invoked by uid 65534); 6 Mar 2006 16:55:44 -0000 Message-ID: <20060306165544.24243.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r383583 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java Date: Mon, 06 Mar 2006 16:55:44 -0000 To: ant-cvs@apache.org From: stevel@apache.org X-Mailer: svnmailer-1.0.7 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: stevel Date: Mon Mar 6 08:55:42 2006 New Revision: 383583 URL: http://svn.apache.org/viewcvs?rev=383583&view=rev Log: adding better diagnostics here when loading fails, like the name of the file at fault. Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java?rev=383583&r1=383582&r2=383583&view=diff ============================================================================== --- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java (original) +++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java Mon Mar 6 08:55:42 2006 @@ -281,14 +281,14 @@ if (sxe.getException() != null) { x = sxe.getException(); } - throw new BuildException(x); + throw new BuildException("Failed to load "+src,x); } catch (ParserConfigurationException pce) { // Parser with specified options can't be built throw new BuildException(pce); } catch (IOException ioe) { // I/O error - throw new BuildException(ioe); + throw new BuildException("Failed to load " + src,ioe); } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org