Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 18147 invoked from network); 29 Sep 2009 04:01:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Sep 2009 04:01:35 -0000 Received: (qmail 99939 invoked by uid 500); 29 Sep 2009 04:01:34 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 99766 invoked by uid 500); 29 Sep 2009 04:01: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 99756 invoked by uid 99); 29 Sep 2009 04:01:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Sep 2009 04:01:33 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [88.84.128.168] (HELO samaflost.de) (88.84.128.168) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Sep 2009 04:01:24 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by samaflost.de (Postfix) with ESMTP id 0383F28985E1 for ; Tue, 29 Sep 2009 06:01:04 +0200 (CEST) Received: from samaflost.de ([127.0.0.1]) by localhost (v35516.1blu.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UnTBY-P01fel for ; Tue, 29 Sep 2009 06:00:56 +0200 (CEST) Received: by samaflost.de (Postfix, from userid 1000) id 3DCF628985E2; Tue, 29 Sep 2009 06:00:56 +0200 (CEST) From: Stefan Bodewig To: dev@ant.apache.org Subject: Re: A groovy frontend for Ant References: <200908311042.48291.nicolas.lalevee@hibnet.org> <87y6p0c6aj.fsf@v35516.1blu.de> <200909011428.43968.nicolas.lalevee@hibnet.org> <27A1DD9B-FD1F-4183-9326-4723E19432B4@hibnet.org> <3F91FA58-0EE8-4FCA-A0D5-0AE176FF75FF@hibnet.org> <87r5trdqzx.fsf@v35516.1blu.de> <827F6864-9CCE-4E39-8158-53BC9B2F86F4@hibnet.org> X-Draft-From: ("nnfolder:mail.jakarta-ant" 96052) Date: Tue, 29 Sep 2009 06:00:55 +0200 In-Reply-To: <827F6864-9CCE-4E39-8158-53BC9B2F86F4@hibnet.org> ("Nicolas =?utf-8?Q?Lalev=C3=A9e=22's?= message of "Mon, 28 Sep 2009 21:06:38 +0200") Message-ID: <874oqmcsco.fsf@v35516.1blu.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On 2009-09-28, Nicolas Lalev=C3=A9e wrote: > Le 28 sept. 09 =C3=A0 17:32, Stefan Bodewig a =C3=A9crit : >> On 2009-09-27, Nicolas Lalev=C3=A9e wrote: >>> Just one thing is worrying me: the ProjectHelper#parse method is >>> expecting an Object as source, which as the javadoc specifies it can >>> be a File, an URL, an InputStream, or even a specialized type as >>> InputSource. Does it really used with something else than a File or >>> an >>> URL ? >> No, we don't do so, but it has been asked for a couple of times. The >> main thing holding back an implementation that was using URLs or >> streams >> is "what should be use to resolve relative file names". > I read again the javadoc about URL, and more specifically URI (added > in java 1.4 so it would be OK now for Ant). There is a function to > resolve a relative path: URI#resolve(URI). So everywhere Ant would > manage URI until it has to get the content of the pointed file. Sure. But the tasks usually expect a File argument. Another idea is to allow anything other than a File (a Resource would probably be the best choice anyway) only for tasks that specify a basedir ( or a modified ) or for build files that specify a basedir attribute holding an absolute path (most likely ${user.dir}). Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org