Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ant

ivy

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?

like image 944
jszepietowski_totimm Avatar asked Feb 08 '11 22:02

jszepietowski_totimm


People also ask

How do you check a dependency tree in ivy?

Have a look at <ivy:dependencytree /> that will display the dependency tree in the console.

What is ivy dependency management?

Ivy is a dependency manager -- it manages and controls the JAR files that your project depends on. If you don't have the JARs, it will pull them down for you by default (from the Maven 2 repository), which can make project setup a lot easier.

What is ivysettings?

The ivysettings. xml file holds a chain of Ivy resolvers for both regular artifacts and Ivy module files. These are used to resolve and publish (i.e. deploy) artifacts. There are a two ways to configure resolvers in ivysettings.


1 Answers

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.

like image 125
martin clayton Avatar answered Oct 04 '22 14:10

martin clayton