Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 62429 invoked from network); 16 Jun 2009 07:58:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jun 2009 07:58:39 -0000 Received: (qmail 75537 invoked by uid 500); 16 Jun 2009 07:58:49 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 75470 invoked by uid 500); 16 Jun 2009 07:58:49 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 75460 invoked by uid 99); 16 Jun 2009 07:58:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 07:58:49 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [193.201.183.194] (HELO smtp4.huk-coburg.de) (193.201.183.194) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 07:58:40 +0000 Received: from sscd0027.huk-coburg.de ([10.148.152.136]) by smtp4.huk-coburg.de with Microsoft SMTPSVC(6.0.3790.1830); Tue, 16 Jun 2009 09:58:20 +0200 Received: by sscd0027.huk-coburg.de (Postfix, from userid 8) id 16BAF208AF4; Tue, 16 Jun 2009 09:57:57 +0200 (CEST) Received: from sscd0001.dmz.huk.de (sscd0001.dmz.huk.de [10.148.152.131]) by sscd0027.huk-coburg.de (Postfix) with ESMTP id EF276208AF1 for ; Tue, 16 Jun 2009 09:57:56 +0200 (CEST) Received: from SMX00002.lan.huk-coburg.de (unverified) by sscd0001.dmz.huk.de (HUK-COBURG Mailrelay2) with ESMTP id for ; Tue, 16 Jun 2009 09:58:19 +0200 Received: from VMX00100.lan.huk-coburg.de ([10.130.66.152]) by SMX00002.lan.huk-coburg.de ([10.131.34.183]) with mapi; Tue, 16 Jun 2009 09:58:19 +0200 From: "Rebhan, Gilbert" To: 'Ant Users List' Date: Tue, 16 Jun 2009 09:58:18 +0200 Subject: RE: oddity Thread-Topic: oddity Thread-Index: Acntw7QxmEGTux4YTm+RYIhTtktCgAAji5uQ Message-ID: References: In-Reply-To: Accept-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE MIME-Version: 1.0 Content-Language: de-DE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org followup =3D the behaviour described in my first posting occurs with Windows2000, jdk 1.= 5.0_11 i checked with the same propertyfiles, means txtkey=3D *blank* and antscript with isset condition on my private machine =3D OpenSuse 11.1/64bit, jdk 1.6.0_13 and got equal ouput for all available ant= versions =3D [echo] Apache Ant version 1.6.5 compiled on June 2 2005 [echo] ${xmlkey} =3D=3D ${xmlkey} [echo] ${txtkey} =3D=3D ${txtkey} [echo] xmlkey not set [echo] txtkey not set [echo] Apache Ant version 1.7.0 compiled on December 13 2006 [echo] ${xmlkey} =3D=3D ${xmlkey} [echo] ${txtkey} =3D=3D ${txtkey} [echo] xmlkey not set [echo] txtkey not set [echo] Apache Ant version 1.7.1 compiled on June 27 2008 [echo] ${xmlkey} =3D=3D ${xmlkey} [echo] ${txtkey} =3D=3D ${txtkey} [echo] xmlkey not set [echo] txtkey not set i rechecked on Windows2000, jdk1.5.0_11 [echo] Apache Ant version 1.6.5 compiled on June 2 2005 [echo] ${xmlkey} =3D=3D ${xmlkey} [echo] ${txtkey} =3D=3D=20 [echo] xmlkey not set [echo] txtkey set and !=3D null [echo] Apache Ant version 1.7.0 compiled on December 13 2006 [echo] ${xmlkey} =3D=3D ${xmlkey} [echo] ${txtkey} =3D=3D=20 [echo] xmlkey not set [echo] txtkey set and !=3D null [echo] Apache Ant version 1.7.1 compiled on June 27 2008 [echo] ${xmlkey} =3D=3D ${xmlkey} [echo] ${txtkey} =3D=3D=20 [echo] xmlkey not set [echo] txtkey set and !=3D null and AIX 5.3.0.0, J2RE 1.5.0 IBM J9 2.3 AIX ppc-32 [echo] Apache Ant version 1.7.1 compiled on June 27 2008 [echo] ${xmlkey} =3D=3D ${xmlkey} [echo] ${txtkey} =3D=3D [echo] xmlkey not set [echo] txtkey set and !=3D null Conclusion =3D there seems to be a difference related to the handling of txt- and xmlproperties on different platforms, maybe it's caused by jdk/= jre ? So i need to use a workaround like that, to check whether a property isset or is blank =3D xmlkey set and !=3D null xmlkey not set Any other ideas ? Should i open a bugreport ? Regards, Gilbert -----Original Message----- From: Rebhan, Gilbert Sent: Monday, June 15, 2009 4:15 PM To: 'Ant Users List' Subject: oddity Hi, found another oddity after upgrading to Ant 1.7.1, regarding the handling of properties and xmlproperties. ${ant.version} $${xmlkey} =3D=3D ${xmlkey} $${txtkey} =3D=3D ${txtkey} xmlkey set and !=3D null xmlkey not set txtkey set and !=3D null txtkey not set bar ------ txtfoo=3Dbar txtkey=3D ant 1.6.5 [echo] Apache Ant version 1.6.5 compiled on June 2 2005 [echo] ${xmlkey} =3D=3D ${xmlkey} [echo] ${txtkey} =3D=3D=20 [echo] xmlkey not set [echo] txtkey set and !=3D null means txt and xmlproperty behave different seems to be fixed now, as ant 1.7.1 gives the same result for txt and xmlproperty =3D ant 1.7.1 [echo] Apache Ant version 1.7.1 compiled on June 27 2008 [echo] ${xmlkey} =3D=3D=20 [echo] ${txtkey} =3D=3D=20 [echo] xmlkey set and !=3D null [echo] txtkey set and !=3D null Testpropertyfiles=20 both xmlkey and txtkey are " " bar ------ txtfoo=3Dbar txtkey=3D *blank* ant 1.6.5 [echo] Apache Ant version 1.7.1 compiled on June 27 2008 [echo] ${xmlkey} =3D=3D ${xmlkey} [echo] ${txtkey} =3D=3D=20 [echo] xmlkey not set [echo] txtkey set and !=3D null ant 1.7.1 [echo] Apache Ant version 1.7.1 compiled on June 27 2008 [echo] ${xmlkey} =3D=3D ${xmlkey} [echo] ${txtkey} =3D=3D=20 [echo] xmlkey not set [echo] txtkey set and !=3D null means there's a difference between the handling of txtproperties and xmlproperties that existed in 1.6.5 and still exists in 1.7.1, should be the same for both kind of properties, i would expect =3D [echo] ${xmlkey} =3D=3D=20 [echo] ${txtkey} =3D=3D Is that intended behaviour or just a bug ? Regards, Gilbert --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org