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 55317 invoked from network); 4 Sep 2000 22:18:54 -0000 Received: from natmail2.webmailer.de (HELO post.webmailer.de) (192.67.198.65) by locus.apache.org with SMTP; 4 Sep 2000 22:18:54 -0000 Received: from ns2000 (pec-10-39.tnt1.hh2.uunet.de [149.225.10.39]) by post.webmailer.de (8.9.3/8.8.7) with SMTP id AAA12513 for ; Tue, 5 Sep 2000 00:18:53 +0200 (MET DST) Message-ID: <007701c016be$465d97b0$270ae195@ns2000> From: "Nico Seessle" To: Subject: [PATCH] Project.java catching absence taskdefs|types/default.properties better Date: Tue, 5 Sep 2000 00:20:03 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0074_01C016CF.09351910" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------=_NextPart_000_0074_01C016CF.09351910 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit At least on my System (W2K; JDK 1.2.2 / JDK 1.3) "getResourceAsStream()" just returns null if the requested resource is not available (and this is also what the docs are saying) - there is never an IOException throws, instead an NullPointerException. This is catched and an BuildException thrown. Nico ------=_NextPart_000_0074_01C016CF.09351910 Content-Type: application/octet-stream; name="Project.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Project.patch" Index: ./src/main/org/apache/tools/ant/Project.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/Project.java,v retrieving revision 1.35 diff -r1.35 Project.java 147a148,150 > if (in =3D=3D null) {=20 > throw new BuildException("Can't load default task = list"); > } 172a176,178 > if (in =3D=3D null) {=20 > throw new BuildException("Can't load default datatype = list"); > } The command completed successfully. ------=_NextPart_000_0074_01C016CF.09351910--