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 44671 invoked from network); 15 Sep 2000 21:05:09 -0000 Received: from natmail2.webmailer.de (HELO post.webmailer.de) (192.67.198.65) by locus.apache.org with SMTP; 15 Sep 2000 21:05:09 -0000 Received: from ns2000 (pec-15-4.tnt3.hh2.uunet.de [149.225.15.4]) by post.webmailer.de (8.9.3/8.8.7) with SMTP id XAA26173 for ; Fri, 15 Sep 2000 23:05:07 +0200 (MET DST) Message-ID: <003e01c01f58$d0530a20$040fe195@ns2000> From: "Nico Seessle" To: References: <1537895B1173D1118D9300A0246212B60596C998@MCDC-ATL-4> Subject: [PATCH] Property.java Re: Loading null? Date: Fri, 15 Sep 2000 23:06:13 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_003B_01C01F69.8B4F96D0" 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_003B_01C01F69.8B4F96D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Looks like a bug... In a previous version "String name" was passed to the method loadFile which was changed later to "File file". Since name is also an instance variable there was no compiler error but the variable is normally not initialized since it is only used for the name/value combination. Fix included (in the correct format again :-) ) Nico ----- Original Message ----- From: "Chaganthi, Madhusudan R." To: Sent: Friday, September 15, 2000 8:24 PM Subject: RE: Loading null? > I guess one of the properties is not being successfully loaded. Which means > anywhere you need that property, you would run into a problem. > Its not a problem as long as you are not using that property in any of the > tasks. > > A guess again. > > See if you have a "null" directory in the directory in which you are > building your stuff (destination directory). > > > > -----Original Message----- > From: Diane Holt [mailto:holtdl@yahoo.com] > Sent: Friday, September 15, 2000 2:17 PM > To: ant-dev@jakarta.apache.org > Subject: Loading null? > > > When I run verbose, this is included in the output: > > Project base dir set to: D:\dianeh\src\main > +Task: property > [property] Loading null > > Should I be worried about it and try to figure out what it means, or is > this normal? > > Thanks, > Diane > > > > ===== > (holtdl@yahoo.com) > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Mail - Free email you can access from anywhere! > http://mail.yahoo.com/ ------=_NextPart_000_003B_01C01F69.8B4F96D0 Content-Type: application/octet-stream; name="Property.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Property.patch" Index: Property.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/taskdefs/Proper= ty.java,v retrieving revision 1.15 diff -u -r1.15 Property.java --- Property.java 2000/09/14 07:19:52 1.15 +++ Property.java 2000/09/15 21:02:08 @@ -124,7 +124,7 @@ =20 private void loadFile (File file) throws BuildException { Properties props =3D new Properties(); - log("Loading " + name, Project.MSG_VERBOSE); + log("Loading " + file.getAbsolutePath(), Project.MSG_VERBOSE); try { if (file.exists()) { props.load(new FileInputStream(file)); ------=_NextPart_000_003B_01C01F69.8B4F96D0--