From dev-return-79065-apmail-ant-dev-archive=ant.apache.org@ant.apache.org Wed May 09 08:38:21 2007 Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 66035 invoked from network); 9 May 2007 08:38:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 May 2007 08:38:20 -0000 Received: (qmail 50280 invoked by uid 500); 9 May 2007 08:38:26 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 50240 invoked by uid 500); 9 May 2007 08:38:26 -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 50229 invoked by uid 99); 9 May 2007 08:38:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2007 01:38:26 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [192.6.10.60] (HELO tobor.hpl.hp.com) (192.6.10.60) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2007 01:38:15 -0700 Received: from localhost (localhost.localdomain [127.0.0.1]) by tobor.hpl.hp.com (Postfix) with ESMTP id 7CF594C0A6 for ; Wed, 9 May 2007 09:37:54 +0100 (BST) X-Virus-Scanned: amavisd-new at hplb.hpl.hp.com Received: from tobor.hpl.hp.com ([127.0.0.1]) by localhost (tobor.hpl.hp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2hy-Uob+L4KP for ; Wed, 9 May 2007 09:37:53 +0100 (BST) Received: from ha-node-br2.hpl.hp.com (ha-node-br2.hpl.hp.com [16.25.144.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tobor.hpl.hp.com (Postfix) with ESMTP id 4B1004C0A4 for ; Wed, 9 May 2007 09:37:53 +0100 (BST) Received: from [16.27.195.147] ([16.27.195.147]) by ha-node-br2.hpl.hp.com (8.14.1/8.13.4) with ESMTP id l498baPH020723 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 9 May 2007 09:37:37 +0100 (BST) Message-ID: <46418837.70406@apache.org> Date: Wed, 09 May 2007 09:37:11 +0100 From: Steve Loughran User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Ant Developers List Subject: Re: auto download of antlibs References: <463AE740.40307@apache.org> <635a05060705040126x561bfd7bm6dc939e68f69e555@mail.gmail.com> <007501c790cd$425c0210$0301a8c0@julia> <635a05060705080623q1718d37ai12877bba63cd2d3f@mail.gmail.com> In-Reply-To: <635a05060705080623q1718d37ai12877bba63cd2d3f@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HPL-MailScanner-Information: Please contact the ISP for more information X-HPL-MailScanner: Found to be clean X-HPL-MailScanner-From: stevel@apache.org X-Virus-Checked: Checked by ClamAV on apache.org Xavier Hanin wrote: > On 5/7/07, Stephen McConnell wrote: >> >> >> > -----Original Message----- >> > From: Xavier Hanin [mailto:xavier.hanin@gmail.com] >> > Sent: Friday, 4 May 2007 5:56 PM >> > To: Ant Developers List >> > Subject: Re: auto download of antlibs >> > >> > On 5/4/07, Steve Loughran wrote: >> > > >> > > One thing I've been thinking of this week is how could we work with >> > > Ivy for automatic antlib download. >> > > >> > > No code right now, just some thoughts >> > > >> > > >> > > 1. add a -offline argument to say "we are offline". this will set >> > > a property, (and.build.offline) and the test will >> > > work. It is meant to tell things like Ivy that we are offline. At >> > > some point we could add some way for Ant to guess whether the net >> > > is there or not, if java integrates with the OS properly (there is >> > > an API call for this in J2ME, just not Java SE) >> > >> > This makes me think that we could improve how Ivy deal with >> > online/offline mode. Indeed for the moment Ivy doesn't really >> > know which repository requires a network access and which >> > doesn't. It would be nice if Ivy would know that, so that >> > even if offline mode you could still use alocal repository >> > (for antlib testing for instance). >> >> Are you describing a policy at the level of: >> >> a) a multi-project build decision? >> b) a specific target project build decision? >> c) a repository access decision? >> d) some or any of the above? > I'm describing how Ivy could be improved to better deal with a > situation where the user do not have network access. You can already > deal with that pretty efficiently in Ivy, but you have to define > several settings, to avoid using remote access when it's not > available. Having something easier for the user in this common > situation would be interesting. Maybe every repository in ivyconf.xml would be marked as offline, meaning they are available when there is no network.When you run ant (or ivy) with -offline, only offline repositories would be used. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org