Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 11930 invoked from network); 26 Mar 2010 08:30:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Mar 2010 08:30:11 -0000 Received: (qmail 16636 invoked by uid 500); 26 Mar 2010 08:30:11 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 16310 invoked by uid 500); 26 Mar 2010 08:30:10 -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 16302 invoked by uid 99); 26 Mar 2010 08:30:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Mar 2010 08:30:10 +0000 X-ASF-Spam-Status: No, hits=-0.2 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gscokart@gmail.com designates 209.85.218.213 as permitted sender) Received: from [209.85.218.213] (HELO mail-bw0-f213.google.com) (209.85.218.213) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Mar 2010 08:30:05 +0000 Received: by bwz5 with SMTP id 5so8035568bwz.20 for ; Fri, 26 Mar 2010 01:29:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=1q/V4RG2hfisYld2dXUFcbw7trc4xnwoZVrfR2jYP6o=; b=TLsGqFQuJ6o7JN4L+WJj+uXMCaMpwvWo8Kd4Er76bMnquMXT6DFYX3vQhxGUU7oaRP jEOqnXCbuG5ohDrMWdP4glIzuh5pyqZj8WG0RNdTbdURJUCTsBWAS18rmPXHFv+bNway +TdomMA3rDyCITTxUbeBQDg7+9OC+xt89XVso= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=clXSBcr03pDzQ598udxk5bPDnAWWO/WROGoBpVSroTyb/4vtejB2fU9BDxwErJZSZj 9RqpowFk9zaZrvzbEQor2JihcBY4HSD8g9vkzpKNzkGj1YfxaNa7UbuVa6LfMp4pFIkV hRYPLeFSrtVE+BlC9FFrkr5g9TgZMn39/vdQc= MIME-Version: 1.0 Received: by 10.204.4.85 with HTTP; Fri, 26 Mar 2010 01:29:43 -0700 (PDT) In-Reply-To: <4BABEA7C.3050703@callenish.com> References: <4EEC2385-E3B8-4642-9A62-D786632E21AB@gmail.com> <255d8d691002250853r763fe532xdbb0b704bc9cc9fb@mail.gmail.com> <0D2CCB35-1A75-4AB6-B51B-820BD52DF829@gmail.com> <87hbo7pr9g.fsf@v35516.1blu.de> <4BA91D74.6020908@gmx.de> <87d3ysfk06.fsf@v35516.1blu.de> <4BABEA7C.3050703@callenish.com> Date: Fri, 26 Mar 2010 09:29:43 +0100 Received: by 10.204.30.195 with SMTP id v3mr1107756bkc.3.1269592183898; Fri, 26 Mar 2010 01:29:43 -0700 (PDT) Message-ID: Subject: Re: task that allows augmentation of previously declared references From: Gilles Scokart To: Ant Developers List Content-Type: multipart/alternative; boundary=0003255577562183890482aff7a0 --0003255577562183890482aff7a0 Content-Type: text/plain; charset=ISO-8859-1 I agree with your argumentation about final in java. But I'm not sure you can translate that to ant. First, I have access to the overwrite method in 1 key in my java IDE. In ant, it might be a little bit more complex. Secondly, I continue to see ant as a declarative language (although inside the target, the ant tasks follow an imperative style). And in a declarative language, it is much more unusual to overwrite/modify the declaration. Immutability has great value in declarative language. Gilles Scokart On 25 March 2010 23:58, Bruce Atherton wrote: > I agree. I see that the intent in such a final attribute is to keep a build > system understandable at a local level without worrying about what external > entities might do, but if you feel that way don't use augmentation in your > build system. The only reasons I use final keyword in programming are > security and performance, neither of which apply here. It is too hard to > predict where extensibility can prove useful to pre-empt it beforehand. > > I've tried to figure out a usecase for a final attribute, and the only one > I can think of is if you have a bunch of generic build files with the same > target names called from a master build file, and in some instances you want > the target augmented from the master build file and in some you don't. That > doesn't sound like it is very compelling for adding the attribute on the > first pass of the augment feature. > > > On 25/03/2010 9:23 AM, Stefan Bodewig wrote: > >> On 2010-03-23, Antoine Levy Lambert wrote: >> >> >> >>> I prefer not to place any restriction on the feature . >>> In fact references currently can be modified by user developed ant >>> tasks or script fragments. >>> >>> >> So you say since references can be overridden without augment it doesn't >> make any sense to restrict augment? Sounds reasonable. >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > For additional commands, e-mail: dev-help@ant.apache.org > > --0003255577562183890482aff7a0--