From ivy-user-return-8194-apmail-ant-ivy-user-archive=ant.apache.org@ant.apache.org Wed Dec 21 17:01:08 2011 Return-Path: X-Original-To: apmail-ant-ivy-user-archive@www.apache.org Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 943B57B0E for ; Wed, 21 Dec 2011 17:01:08 +0000 (UTC) Received: (qmail 77975 invoked by uid 500); 21 Dec 2011 17:01:08 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 77934 invoked by uid 500); 21 Dec 2011 17:01:07 -0000 Mailing-List: contact ivy-user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@ant.apache.org Delivered-To: mailing list ivy-user@ant.apache.org Received: (qmail 77926 invoked by uid 99); 21 Dec 2011 17:01:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2011 17:01:07 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jmagno.ti@gmail.com designates 209.85.215.45 as permitted sender) Received: from [209.85.215.45] (HELO mail-lpp01m010-f45.google.com) (209.85.215.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2011 17:01:01 +0000 Received: by lags15 with SMTP id s15so3312523lag.4 for ; Wed, 21 Dec 2011 09:00:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=SkAsT2Mt1if7nIfdkHuRuaysPJmC5Aw5ehW/qb3wNZE=; b=PtKppFRX2/KiKMP+oeZEWvNmYFeKEmBwd7JXHCXtw/a9Qh7OibctY/1eSq+0conjgF xVv5WSTV4n/WYImUPnANGbA8JdxtFUIJ+pGfp/hhc3KL/vfzC9Vcm3TOdEZ13JgxbSns dLuQAOrvE7fvrOEytcv9uLWIpLIvv6ePc9cQ0= MIME-Version: 1.0 Received: by 10.152.112.42 with SMTP id in10mr6711909lab.21.1324486839575; Wed, 21 Dec 2011 09:00:39 -0800 (PST) Received: by 10.152.111.7 with HTTP; Wed, 21 Dec 2011 09:00:39 -0800 (PST) In-Reply-To: References: Date: Wed, 21 Dec 2011 15:00:39 -0200 Message-ID: Subject: Re: Avoid full build From: Jefferson Magno Solfarello To: ivy-user@ant.apache.org Content-Type: multipart/alternative; boundary=f46d040890fd95255d04b49d1fb5 --f46d040890fd95255d04b49d1fb5 Content-Type: text/plain; charset=ISO-8859-1 Hey Tim, thanks for the help. I will work on a way to incorporate some of the ideas on our builds. Regards, Jefferson Em 19 de dezembro de 2011 14:56, Tim Brown escreveu: > I've done this in the past by: > > - Verifying if the module I'm about to build already exists in the repo > at the current version. > - After resolving, verify if any of my dependencies have changed > - If current version exists in repo, and no dependency change, then skip > the module. > > More details on the versioning -- we shoved the Subversion revision in as > part of the version. Works OK for jars, but 'container' type artifacts > (ears, wars) don't change as much directly -- but the consumed artifacts > do. > > Including something beyond revision # is usually necessary. Build # is > simple, if you manage them. > > On Mon, Dec 19, 2011 at 5:11 AM, Jefferson Magno Solfarello < > jmagno.ti@gmail.com> wrote: > > > Hi guys, > > > > I am working on a multi-project build using Ant and Ivy. > > > > He have basically three types of projects: > > * Java libraries, with .jar artifacts > > * Web projects, with .war artifacts > > * EAR projects, with .ear artifacts > > > > Some project depend on others. > > > > When a change is commited to our repository, we start a full build of the > > projects. I am using the task to call the build of the > > projects in appropriate order. On the I have > > forcedeliver="true" and overwrite="true". > > > > Using this approach, everything is built again, right? > > > > Is there a way to build only the projects that changed and the projects > > dependent of them? > > > > Or, how to determine if the contents of a Jar, War or Ear file is the > same, > > to avoid re-building it? > > > > Thanks for any suggestion > > > > Jefferson > > > --f46d040890fd95255d04b49d1fb5--