ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maarten Coene <>
Subject Re: Issues with listModules & Branches
Date Mon, 03 May 2010 07:53:28 GMT
Could you try again with the latest Ivy snapshot?
If I remember correctly, we fixed some branch-related issues. So it might solve your problem.


----- Original Message ----
From: James Davis <>
To: "" <>
Sent: Mon, May 3, 2010 9:27:30 AM
Subject: RE: Issues with listModules & Branches

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: • e-mail:
(p) 360.698.7100 x241 • (f) 360.698.7200

From: Maarten Coene []
Sent: Sunday, May 02, 2010 10:58 PM
Subject: Re: Issues with listModules & Branches

Does the patterns of your resolvers contains the [branch] token?


----- Original Message ----
From: James Davis <>
To: "" <>
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]"

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()

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

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.


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


View raw message