Yes, it does.  As I stated, it works correctly when I specify branches in the 
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 
revisions (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 
tomorrow.

James Davis • QA Engineer II/Software Engineer
Applied Technical Systems, Inc. • Systems Division
web: www.atsid.com • e-mail: james.da...@atsid.com
(p) 360.698.7100 x241 • (f) 360.698.7200

________________________________________
From: Maarten Coene [maarten_co...@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 <james.da...@atsid.com>
To: "ivy-user@ant.apache.org" <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 some of 
the metadata that is supposed to be available.

Currently I'm trying to get a list of all modules in the repository regardless 
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 API).

Here is the ant task call that I use:
<ivy:listmodules organisation="MyOrg" module="*" revision="*" branch="*" 
property="ivy.modules.[module].[branch].[revision]" value="found"/>

When I try to print out all of the ivy.modules.* properties I get one for each 
module, but it ignores the branches.

When I try a similar call through the API:
ModuleRevisionId[] ids = ivy.listModules(ModuleRevisionId
                    .newInstance("MyOrg", "*",
                            PatternMatcher.ANY_EXPRESSION, "*"), 
ivy.getSettings()
                    .getMatcher(PatternMatcher.EXACT_OR_REGEXP));


I get back a list of module ids.  Some of which are duplicated (I'm assuming 
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 list 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 having trouble.

Thanks.



James Davis * QA Engineer II/Software Engineer
Applied Technical Systems, Inc. * Information Engineering
web: www.atsid.com * e-mail: james.da...@atsid.com
(p) 360.698.7100 x241 * (f) 360.698.7200



Reply via email to