Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 38914 invoked from network); 6 Oct 2000 01:07:54 -0000 Received: from cr102266-a.ktchnr1.on.wave.home.com (HELO gateway.patronix.com) (qmailr@24.114.144.198) by locus.apache.org with SMTP; 6 Oct 2000 01:07:54 -0000 Received: (qmail 3994 invoked from network); 6 Oct 2000 01:08:29 -0000 Received: from unknown (HELO mocha) (192.168.0.129) by 192.168.0.100 with SMTP; 6 Oct 2000 01:08:29 -0000 From: "Scotte Zinn" To: "Ant Developer Mailing List \(E-mail\)" Subject: [PATCH] ProjectHelper.java: Can't assume that the file that wasn't found was the buildFile Date: Thu, 5 Oct 2000 21:03:28 -0400 Message-ID: <00c901c02f31$3dba5ae0$0100000a@patronix.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_00CA_01C02F0F.B6A8BAE0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------=_NextPart_000_00CA_01C02F0F.B6A8BAE0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit For example, when using XML ENTITY definitions, you can't assume that the thrown FileNotFoundException refers to the build file. Instead, assume that the exception message contains the information about the file that wasn't found. -- Scotte ------=_NextPart_000_00CA_01C02F0F.B6A8BAE0 Content-Type: application/octet-stream; name="ProjectHelper.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="ProjectHelper.patch" Index: ProjectHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: = /home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/ProjectHelper.j= ava,v retrieving revision 1.32 diff -u -r1.32 ProjectHelper.java --- ProjectHelper.java 2000/09/21 07:19:48 1.32 +++ ProjectHelper.java 2000/10/06 01:07:04 @@ -127,7 +127,7 @@ throw new BuildException(exc.getMessage(), t); } catch(FileNotFoundException exc) { - throw new BuildException("File \"" + buildFile.toString() + = "\" not found"); + throw new BuildException( exc.getMessage() ); } catch(IOException exc) { throw new BuildException("Error reading project file", = exc); ------=_NextPart_000_00CA_01C02F0F.B6A8BAE0--