From ivy-user-return-6742-apmail-ant-ivy-user-archive=ant.apache.org@ant.apache.org Mon May 03 07:30:02 2010 Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 88963 invoked from network); 3 May 2010 07:30:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 May 2010 07:30:02 -0000 Received: (qmail 39120 invoked by uid 500); 3 May 2010 07:30:02 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 38900 invoked by uid 500); 3 May 2010 07:30:00 -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 38884 invoked by uid 99); 3 May 2010 07:29:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 May 2010 07:29:59 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [67.132.104.135] (HELO edge.apptechsys.com) (67.132.104.135) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 May 2010 07:29:54 +0000 Received: from diamondhead.apptechsys.com (192.168.245.1) by mx.atsid.com (192.168.245.50) with Microsoft SMTP Server (TLS) id 8.1.436.0; Mon, 3 May 2010 00:29:30 -0700 Received: from diamondhead.apptechsys.com ([192.168.240.10]) by diamondhead.apptechsys.com ([192.168.240.10]) with mapi; Mon, 3 May 2010 00:29:33 -0700 From: James Davis To: "ivy-user@ant.apache.org" Date: Mon, 3 May 2010 00:27:30 -0700 Subject: RE: Issues with listModules & Branches Thread-Topic: Issues with listModules & Branches Thread-Index: AcrqhcFeM4Gpl6w0Qcm+DKFjzIQ1MQADFVd2 Message-ID: <7E9646C605F85F45B9FEA87EF1F29C123A2E23D393@diamondhead.apptechsys.com> References: <7E9646C605F85F45B9FEA87EF1F29C123A2E753633@diamondhead.apptechsys.com>,<850227.20288.qm@web30802.mail.mud.yahoo.com> In-Reply-To: <850227.20288.qm@web30802.mail.mud.yahoo.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Yes, it does. As I stated, it works correctly when I specify branches in t= he ivy.xml and resolve dependencies (and publish dependencies). It's just = when I try and list modules through the API or the ant tasks. Also, when I list them through the API, I get duplicates of some of the rev= isions (which makes sense because those are the ones from branches). I don= 't have the actual resolver patterns at the moment, I can attach those tomo= rrow. James Davis =95 QA Engineer II/Software Engineer Applied Technical Systems, Inc. =95 Systems Division web: www.atsid.com =95 e-mail: james.davis@atsid.com (p) 360.698.7100 x241 =95 (f) 360.698.7200 ________________________________________ From: Maarten Coene [maarten_coene@yahoo.com] Sent: Sunday, May 02, 2010 10:58 PM To: ivy-user@ant.apache.org Subject: Re: Issues with listModules & Branches Does the patterns of your resolvers contains the [branch] token? Maarten ----- Original Message ---- From: James Davis To: "ivy-user@ant.apache.org" Sent: Sat, May 1, 2010 1:57:31 AM Subject: Issues with listModules & Branches I'm working with ivy 2.1.0 and seem to be having some issues getting at som= e of the metadata that is supposed to be available. Currently I'm trying to get a list of all modules in the repository regardl= ess of what branch they are in (and I want to know what branch they are in)= . I have tried this with two methods, both of which seem to bring me to a = dead-end (through the ivy ant-tasks and through direct access to the ivy AP= I). Here is the ant task call that I use: When I try to print out all of the ivy.modules.* properties I get one for e= ach module, but it ignores the branches. When I try a similar call through the API: ModuleRevisionId[] ids =3D ivy.listModules(ModuleRevisionId .newInstance("MyOrg", "*", PatternMatcher.ANY_EXPRESSION, "*"), ivy.getSet= tings() .getMatcher(PatternMatcher.EXACT_OR_REGEXP)); I get back a list of module ids. Some of which are duplicated (I'm assumin= g these are ones from the branches as well as non-branches). However, when= I loop through them and use getBranch() on each of the ids it returns null= . Also, if I use ivy.findModule(id) and look for the branch in there, it also= has null for the branch. Any ideas on how to do this? Is there a way I can query the repo for a lis= t of branches? I know our settings work with branching because all of our = projects that use the branches work correctly. It is only when we try and = get some report information from the ivy repository that we seem to be havi= ng trouble. Thanks. James Davis * QA Engineer II/Software Engineer Applied Technical Systems, Inc. * Information Engineering web: www.atsid.com * e-mail: james.davis@atsid.com (p) 360.698.7100 x241 * (f) 360.698.7200