Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 12711 invoked from network); 15 Dec 2010 18:44:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Dec 2010 18:44:29 -0000 Received: (qmail 32096 invoked by uid 500); 15 Dec 2010 18:44:28 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 32048 invoked by uid 500); 15 Dec 2010 18:44:28 -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 32040 invoked by uid 99); 15 Dec 2010 18:44:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Dec 2010 18:44:28 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Michael_Rennie@ca.ibm.com designates 32.97.182.137 as permitted sender) Received: from [32.97.182.137] (HELO e7.ny.us.ibm.com) (32.97.182.137) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Dec 2010 18:44:18 +0000 Received: from d01dlp01.pok.ibm.com (d01dlp01.pok.ibm.com [9.56.224.56]) by e7.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id oBFIPjC3010794 for ; Wed, 15 Dec 2010 13:26:08 -0500 Received: from d01relay05.pok.ibm.com (d01relay05.pok.ibm.com [9.56.227.237]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id CFF0B728045 for ; Wed, 15 Dec 2010 13:43:56 -0500 (EST) Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay05.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id oBFIhuLQ125364 for ; Wed, 15 Dec 2010 13:43:56 -0500 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id oBFIhtPL004390 for ; Wed, 15 Dec 2010 16:43:56 -0200 Received: from d25ml04.torolab.ibm.com (d25ml04.torolab.ibm.com [9.26.6.105]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id oBFIhtbe004339 for ; Wed, 15 Dec 2010 16:43:55 -0200 In-Reply-To: <4D08F3F7.5040300@gmx.de> References: <201012151456.oBFEud7i015231@thor.apache.org> <4D08F3F7.5040300@gmx.de> Subject: Re: DO NOT REPLY [Bug 49659] [regression] Project.getReference(key) no longer returns certain references X-KeepSent: 6BA3E873:EB502598-862577FA:0065B33F; type=4; name=$KeepSent To: "Ant Developers List" X-Mailer: Lotus Notes Release 8.5.2 August 10, 2010 Message-ID: From: Michael Rennie Date: Wed, 15 Dec 2010 12:43:53 -0600 X-MIMETrack: Serialize by Router on D25ML04/25/M/IBM(Release 8.0.2FP5|April 13, 2010) at 12/15/2010 13:43:54 MIME-Version: 1.0 Content-type: multipart/alternative; Boundary="0__=09BBFD69DFF635AF8f9e8a93df938690918c09BBFD69DFF635AF" Content-Disposition: inline X-Content-Scanned: Fidelis XPS MAILER X-Virus-Checked: Checked by ClamAV on apache.org --0__=09BBFD69DFF635AF8f9e8a93df938690918c09BBFD69DFF635AF Content-type: text/plain; charset=US-ASCII Antoine Levy-Lambert wrote on 2010/12/15 10:59:35 AM: > > My guess is that in ant 1.8.x it is only legal to use references which > have already been defined at execution time. > > So the eclipse integration would need to execute the build to find which > references are legally usable in a given target. This would not work for Eclipse. Given a snippet like: Prior to Ant 1.8.x we could successfully look up project.class.path and project.class.path2 without having to execute anything, which would allow us to show variable pop-ups, provide content assist, etc. Executing the build file after each save, each invocation of content assist, each value hover, each edit is not realistic. > > Maybe the eclipse platform integration would need a special executor > which would only execute type definitions. It would not work 100% > because a task can create an instance of a fileset and assign it a refid > and this executor would not run the task. We could definitely look into it. > > Or maybe the better option is to say that it is impossible to predict > which refids will be legal in a given target and do not show lists of > possible choices ? This could lead to a loss of functionality in the Eclipse Ant editor that we would like to avoid. > > Regards, > > Antoine > Perhaps there is just a newer code path I am not aware of to look up UnknownElements by their id? Thanks, Michael Rennie --0__=09BBFD69DFF635AF8f9e8a93df938690918c09BBFD69DFF635AF--