Return-Path: Delivered-To: apmail-incubator-ivy-user-archive@locus.apache.org Received: (qmail 37060 invoked from network); 25 Jun 2007 07:06:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jun 2007 07:06:41 -0000 Received: (qmail 35094 invoked by uid 500); 25 Jun 2007 07:06:44 -0000 Delivered-To: apmail-incubator-ivy-user-archive@incubator.apache.org Received: (qmail 35052 invoked by uid 500); 25 Jun 2007 07:06:44 -0000 Mailing-List: contact ivy-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@incubator.apache.org Delivered-To: mailing list ivy-user@incubator.apache.org Received: (qmail 35042 invoked by uid 99); 25 Jun 2007 07:06:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2007 00:06:44 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of xavier.hanin@gmail.com designates 209.85.146.183 as permitted sender) Received: from [209.85.146.183] (HELO wa-out-1112.google.com) (209.85.146.183) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2007 00:06:40 -0700 Received: by wa-out-1112.google.com with SMTP id n4so3766418wag for ; Mon, 25 Jun 2007 00:06:20 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=caUz7tewuoyA/O5w+VDXntgEtz5U2SE7/pN+QXfLJXWjWu96tEy0Yk630fERqocSmj2D+tykQ4EnNebGaHDP2JEGiJ5TRhz0kIqIFs0bSJMH5wNvcJmRReixSuBG6TkFbqR0qWO5EUADHp85TMGSapblz3VI90Gnlcw6ugwYYZY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=GhnqnsmUZjvcZr1XTWTLLTB8nOcWICjvsf90m6qcXlstipUA1cR7V4/a14RBdTRv+k37yAGCX/Zsw32k2f0V+aLySBjFcpeTa8xCFf9slcmkNL+du3ooQ/vXv16hP3PHeHizz1UnswyxQC4Pkkvcwbt5rPKanHEHcnyzCTvXFoo= Received: by 10.114.209.1 with SMTP id h1mr5164981wag.1182755179861; Mon, 25 Jun 2007 00:06:19 -0700 (PDT) Received: by 10.114.124.10 with HTTP; Mon, 25 Jun 2007 00:06:19 -0700 (PDT) Message-ID: <635a05060706250006h75ca4d6tdda15e8e737ffdcb@mail.gmail.com> Date: Mon, 25 Jun 2007 09:06:19 +0200 From: "Xavier Hanin" To: ivy-user@incubator.apache.org, sgoldstein@apache.org Subject: Re: submodule dependencies In-Reply-To: <585656.55760.qm@web82813.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_138549_1944165.1182755179830" References: <585656.55760.qm@web82813.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_138549_1944165.1182755179830 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 6/22/07, Scott Goldstein wrote: > > I have a use case in which a product contains a number of submodules which > can be used individually. So, in essence, the submodules are identified by: > > organization/product/revision/submodule > > It doesn't appear that Ivy has such a notion in its depedency resolution > mechanism. Am I correct? > > I could replace one of these tokens with the "branch" element, but I > don't think that this was the intended purpose. > > I suppose another approach, here, would be to write a custom > DependencyResolver in which for the module, I would specify something like > "product:submodule" and my resolver would split these up and apply them to a > pattern. > > Are there any other approaches that would make more sense? Yes, I think you should better use extra attributes in this case, they are meant for that and very easy to use. All you have to do is declare a submodule attribute in your info element of your ivy files, and in your dependency elements. Then you can use this submodule as a token in your patterns. HTH, Xavier Thanks. > > Scott > -- Xavier Hanin - Independent Java Consultant Manage your dependencies with Ivy! http://incubator.apache.org/ivy/ ------=_Part_138549_1944165.1182755179830--