From dev-return-80373-apmail-ant-dev-archive=ant.apache.org@ant.apache.org Wed Aug 22 16:05:48 2007 Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 58516 invoked from network); 22 Aug 2007 16:05:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Aug 2007 16:05:38 -0000 Received: (qmail 54643 invoked by uid 500); 22 Aug 2007 16:05:34 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 54448 invoked by uid 500); 22 Aug 2007 16:05:34 -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 54437 invoked by uid 99); 22 Aug 2007 16:05:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2007 09:05:34 -0700 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 [206.190.58.151] (HELO web55102.mail.re4.yahoo.com) (206.190.58.151) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 22 Aug 2007 16:06:08 +0000 Received: (qmail 9353 invoked by uid 60001); 22 Aug 2007 16:05:10 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=gA+FsOLbhkKgkpbiBY78IquMGPEj9CZif55SSL+7v6osjMxrjAMXj7i1k4ObjIIRvQhofyGjgWLBH5Hb4+OJ9O7R1i8TiQalRs86cG817xUY27MAqt2b5tRUfaPV+MJUHOq9PB1qwEJt1tlrO5ORGJsaTPpUPlaQ6+asFlrsaMY=; X-YMail-OSG: u0kHEW0VM1mnbrC9ddHWbNRhAa31ZfSp4J7EqEq8ebJ.9vSPIDJT5OAv0yT5MSoQZQ-- Received: from [66.10.233.130] by web55102.mail.re4.yahoo.com via HTTP; Wed, 22 Aug 2007 09:05:10 PDT Date: Wed, 22 Aug 2007 09:05:10 -0700 (PDT) From: Matt Benson Subject: Re: svn commit: r568511 - /ant/core/trunk/src/main/org/apache/tools/ant/PropertyHelper.java To: Ant Developers List In-Reply-To: <255d8d690708220837p58657b95yc2a38047368f3968@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <168048.9337.qm@web55102.mail.re4.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --- Dominique Devienne wrote: > On 8/22/07, Peter Reilly > wrote: > Note that I'm lost in this discussion... > > > "${el:project.targets.get('not-present')}" should > resolve to > > "null" rather than > "${el:project.targets.get('not-present')}". > > - the string "null" cannot be used, it actually > needs to be > > an null object (when given to setAttribute(Object > val)) > > But this is interesting and a bit worrying. Why > should it resolve to > "null" or a null object, rather than the empty > string "", or raise an > exception? In fact, returning > "${el:project.targets.get('not-present')}" is > consistent with current > Ant usage. I am starting to remember going down this road, myself, and deciding that it might be reasonable wrt least surprise to simply treat nulls as they always were. But that doesn't fully account for the situation where one really does want to allow null as a potential value one has pulled from some custom PropertyEvaluator to be set as a property of an Ant-managed type. We can continue down Peter's road, though I'd still like an opinion on the proxy mechanism I suggested for delegate recursion... :) -Matt > > Which setAttribute(Object val) are you referring to > Peter? A setter on > a task? Is it a good thing to have "untyped" > attributes like this? > > I'm just trying to understand the user-side behavior > of PH and the > Local Property proposal, but so far the picture is > muddy for me. --DD > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > dev-unsubscribe@ant.apache.org > For additional commands, e-mail: > dev-help@ant.apache.org > > ____________________________________________________________________________________ Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. http://mobile.yahoo.com/go?refer=1GNXIC --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org