Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 18541 invoked from network); 3 Mar 2010 23:19:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Mar 2010 23:19:36 -0000 Received: (qmail 4677 invoked by uid 500); 3 Mar 2010 23:19:28 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 4655 invoked by uid 500); 3 Mar 2010 23:19:28 -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 4646 invoked by uid 99); 3 Mar 2010 23:19:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Mar 2010 23:19:27 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of g.clitheroe@gmail.com designates 209.85.222.171 as permitted sender) Received: from [209.85.222.171] (HELO mail-pz0-f171.google.com) (209.85.222.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Mar 2010 23:19:21 +0000 Received: by pzk1 with SMTP id 1so549759pzk.10 for ; Wed, 03 Mar 2010 15:19:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=dk6m5g8/mJU2+cVLNbGo3xcHGDXWhYsCmTqIEnTKKt0=; b=e+CgOpjPiY5fyKSwc24FoDPNIbpAJs2ikr2bqF7rAlXVqLxnhRDfALqKCpixa0bDZ9 GEkMhu9iJNqE5inAu6JVZu0BeqBaGbHVVGePO9fadB6LdUPGjy+E2id19TCMvzBtBIUC HZXkr8YikGsGovvtuflHaJRoP1nrkeDwXnEeU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=td5TjjOJlTiM7MG1tGESl3Bnc+gAtrOLFs5lmBvGfRjPI3XGllRoClWtENdl3SNGSr 7al8UbQy33LtKYnEJa1RS+7liRx2hAeXDHnj8+3kNN2XlcARc5EGnHqrcmatEYaWkZe/ JTvp4SorhgZ2PQE7JXMteiWozt0KnSY4wRCW0= MIME-Version: 1.0 Received: by 10.142.201.18 with SMTP id y18mr3539987wff.132.1267658340628; Wed, 03 Mar 2010 15:19:00 -0800 (PST) In-Reply-To: References: Date: Thu, 4 Mar 2010 12:19:00 +1300 Message-ID: <14479a011003031519l3808deb0nfb32eabefdc9a81c@mail.gmail.com> Subject: Re: Sharing Ivy settings file amongst developpers From: Geoff Clitheroe To: ivy-user@ant.apache.org Content-Type: multipart/alternative; boundary=000e0cd22a0c16f9eb0480edb5e0 --000e0cd22a0c16f9eb0480edb5e0 Content-Type: text/plain; charset=ISO-8859-1 We do something very similar except the settings and an ant build-base file are located on a web server. Which ever way you go for hosting the files just think about what is essentially your public api first - ie the filename, the access mechanism, and how variables are named so that you can change under the hood without breaking all your builds. If you want to look at ours as a starting point I'm happy to share. I think I have this done this before if you search the mailing lists you may find enough. This is a common question - it would be ideal to make a jetty based project that provides this functionality for the community. Cheers, Geoff On Thu, Mar 4, 2010 at 11:25 AM, Shawn Castrianni < Shawn.Castrianni@halliburton.com> wrote: > I have all the ivy settings files (I use one per product release) checked > into a SCM repo. This repo contains ant along with my master ant build file > in which all others import, ivy along with all the ivy settings files, and > any other build related tools a developer would use to build his code. A > developer just checks out this buildtools sandbox and his module's sandbox > and he is ready to go. I have my master.xml build file coded to prompt the > user for what ivy settings file he wants to use by giving him a list of > choices by product release name. He responds, and then my master.xml loads > in that ivysettings file and the build starts. The list of choices of ivy > settings files is constrained to only those that list the module to be built > in the modules section AND to only those that match the branch listed in the > modules section with the branch the sandbox was checked out from. In other > words, if the developer checked out a sandbox for module_A from branch_A, > then only the ivysettings files that contain module_A with branch_A > specified will show up in the list. If they hardcode an ivysettings file > (possible by setting a RELEASE_NAME env variable in which my master.xml > looks for) and that ivysettings file doesn't list that module OR specifies a > branch for that module that doesn't match the sandbox, then the developer > gets a warning. This usually means the developer checked out the wrong > branch sandbox to be used for the release he specified in which case he > should get a warning because he is making a mistake. > > I have about 200 hundred developers across a large enterprise and this > works beautifully. > > --- > Shawn Castrianni > > -----Original Message----- > From: normand gagnon [mailto:letrait@gmail.com] > Sent: Wednesday, March 03, 2010 4:15 PM > To: ivy-user@ant.apache.org > Subject: Sharing Ivy settings file amongst developpers > > Hi, > > I'm looking for a way to manage ivy settings file. My two main goals are > "build reproducibility" and provide a standard way within the enterprise to > resolve dependencies. I want to have your thoughts on this, do you use a > single ivy settings file for all your enterprise modules? Or are every > projects having their own ivy settings? Ar you committing settings file in > a > SCM (and therefore, when building past versions of a given project, you are > using the ivy setting file that was in use at that time)? > > Or maybe, you are giving a "template" of an ivy settings file to each > developer and you let them manage it as they want in their IDE, but when it > is time to publish a new module, they are forced to use a central build > system (or publishing is in fact managed by a continuous integration server > like Hudson)? > > My idea is to let developer manages their own ivysettings file, which could > include another "enterprise-scope" ivysettings file, for the whole > development process. To publish new "public" release, then I would use a > central build system which would use an "official" ivysettings file that > would be used for all modules under the same branch. This to insure that > the dependencies are always resolved the same way when released publicly, > so > you won't find in the public repository modules that were published > differently by different developers who were using different ivysettings > file. > > Normand > > ---------------------------------------------------------------------- > This e-mail, including any attached files, may contain confidential and > privileged information for the sole use of the intended recipient. Any > review, use, distribution, or disclosure by others is strictly prohibited. > If you are not the intended recipient (or authorized to receive information > for the intended recipient), please contact the sender by reply e-mail and > delete all copies of this message. > --000e0cd22a0c16f9eb0480edb5e0--