jszepietowski_totimm
jszepietowski_totimm

Reputation: 53

How to determine the version of a resolved Ivy dependency from Ant?

I have an ivy file with the following dependency:

<dependency org="totimm" name="techcentral" rev="1.6.+" conf="sdk->sdk" transitive="false"/>

Is there any way to determine the revision that is resolved (for example 1.6.0, 1.6.1, etc) from the ant file which orders the ivy resolve?

Upvotes: 5

Views: 842

Answers (1)

martin clayton
martin clayton

Reputation: 78105

You should be able to use the artifactproperty task for this, something like:

<ivy:artifactproperty
     name="module.[module].rev" value="[revision]"/>

will set one property, holding the revision number, for each artifact resolved.

Upvotes: 6

Related Questions