Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 10737 invoked from network); 30 Nov 2005 05:27:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Nov 2005 05:27:14 -0000 Received: (qmail 75033 invoked by uid 500); 30 Nov 2005 05:27:09 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 74994 invoked by uid 500); 30 Nov 2005 05:27:09 -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 74980 invoked by uid 99); 30 Nov 2005 05:27:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2005 21:27:09 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [217.160.128.107] (HELO www.samaflost.de) (217.160.128.107) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2005 21:28:38 -0800 Received: by www.samaflost.de (Postfix, from userid 1000) id A7AC788A38C; Wed, 30 Nov 2005 06:26:46 +0100 (CET) To: dev@ant.apache.org Subject: Re: Importing and caching build files from a URL X-Draft-From: ("nnfolder:mail.jakarta-ant" 71930) References: <255d8d690511290718l36389ca7ka1e968943f49c252@mail.gmail.com> From: Stefan Bodewig Date: Wed, 30 Nov 2005 06:26:46 +0100 In-Reply-To: (Peter Reilly's message of "Tue, 29 Nov 2005 16:13:16 +0000") Message-ID: <87mzjmvh7t.fsf@www.samaflost.de> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Tue, 29 Nov 2005, Peter Reilly wrote: > The current file attribute of the import task is meant to act > in the same way as href in html- - i.e relative to the > directory that the importer file is in. > > THe import task could easily use urls in the same way - but > some internals in ant assume that build files are Files and > only Files. Does this apply to imported files as well? Or only to the main build file loaded at first? Right now we suggest to use the property ant.file.IMPORTED and use it as if it was a file name. I guess we'd need a new task like which would resolve a relative path and set a property with the absolute value. This task could deal with files as well as arbitrary URLs as values for ant.file.IMPORTED. The result would be an URL, even in the file case. People who write build files and anticipate their file to be imported via non-file URLs should use that and resource versions of tasks. I.e. instead of you'd write That way we'd require some thinking ahead of people writing build files that get imported, but should be able to solve the relative path issue. Other "build files are files" problems are probably waiting to be discovered. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org