From easyant-dev-return-298-apmail-incubator-easyant-dev-archive=incubator.apache.org@incubator.apache.org Tue Aug 14 22:39:20 2012 Return-Path: X-Original-To: apmail-incubator-easyant-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-easyant-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C09D8D8A4 for ; Tue, 14 Aug 2012 22:39:20 +0000 (UTC) Received: (qmail 73604 invoked by uid 500); 14 Aug 2012 22:39:20 -0000 Delivered-To: apmail-incubator-easyant-dev-archive@incubator.apache.org Received: (qmail 73577 invoked by uid 500); 14 Aug 2012 22:39:20 -0000 Mailing-List: contact easyant-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: easyant-dev@incubator.apache.org Delivered-To: mailing list easyant-dev@incubator.apache.org Received: (qmail 73569 invoked by uid 99); 14 Aug 2012 22:39:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2012 22:39:20 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jeanlouis.boudart@gmail.com designates 209.85.213.47 as permitted sender) Received: from [209.85.213.47] (HELO mail-yw0-f47.google.com) (209.85.213.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2012 22:39:12 +0000 Received: by yhjj56 with SMTP id j56so1140127yhj.6 for ; Tue, 14 Aug 2012 15:38:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=AUo+uYyUd0IOdAAk+cPBI3maFNhXdHRWavMDE+ILWOU=; b=J4OIsOSYdpQ+I3pZMmEcwVIEovmUPXBYamXF2O18/aeUuD/lCIbBpYQlSyQaCEfsjD zGTaBo17YlViICJqWcniR6aCStEt6Z7eb8BqS9ggQQUASnbPIVxio7OxM5eTk4PY2YbM 8Iae6fNCh8Zgmy99UiBpu2FEgjXz38L9lHEcaF9YkfDOqL6LmmvGPpP4J5nACkAZ/gBy kjm33mX4A5xOdFrqcQo2MMvP6i0Ry85Q8wU1q+x7o50A1TcXEP3SyLvP5p1oOWoLdIhC BZFMyt74Cn2Bhh0QdRpsLP14If26sHOandb9IpIR9nUaOcx2Jpw0D5lBaIRaIzT5u/v+ DxZA== MIME-Version: 1.0 Received: by 10.43.43.194 with SMTP id ud2mr12274793icb.13.1344983931737; Tue, 14 Aug 2012 15:38:51 -0700 (PDT) Received: by 10.42.244.71 with HTTP; Tue, 14 Aug 2012 15:38:51 -0700 (PDT) Received: by 10.42.244.71 with HTTP; Tue, 14 Aug 2012 15:38:51 -0700 (PDT) In-Reply-To: References: Date: Wed, 15 Aug 2012 00:38:51 +0200 Message-ID: Subject: Offline feature From: Jean-Louis Boudart To: easyant-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=bcaec529a1757ad7c904c74179f6 --bcaec529a1757ad7c904c74179f6 Content-Type: text/plain; charset=ISO-8859-1 Hi EasyAnters, I've just commited an experimental feature : go-offline. This features allow someone to fetch easyant stuff (plugins,buildtypes) and project dependencies in a local directory in order to work offline. Note: Then this local directory could be shipped to make a distributable build of a project How it works : EasyAnt provides two tasks : * ConfigureBuildScopeRepository designed to create an ivy filesystem resolver in ${target}/repository/ * GoOffline designed to install easyant stuff and project dependencies in a givenrepository Both task provides a few configuration options to make it flexible as usual :). I also introduced a new plugin named offline using those tasks. This plugins register two build scope repository (one for easyant stuff, and one for project dependencies as we have two distinct ivy instances) and provide a target to call GoOffline. Great, we now have everything in project target/repository but how easyant will use it ? The plugin detects if you're running easyant in offline mode (by checking a property setted by easyant core), and configure build scope repositories as dictator resolvers. In ivy, when a resolved is declared as dictator it is used in place of any specified resolver in IvySettings. Any comments are welcome :) Cheers, --bcaec529a1757ad7c904c74179f6--