We have a simple Ivy repository that we host on an internal server (Apache httpd serves the JARs and their Ivy XML descriptors).
Now I have a need to programmatically determine which latest version of the dependency is in our repo. Thus, if we have two versions of Mockito, our repo might look like this:
mockito/ ==> organisation mockito-all ==> module 1.9.4/ ==> revision # mockito-all-1.9.4.jar mockito-all-1.9.4-ivy.xml 1.9.5/ mockito-all-1.9.5.jar mockito-all-1.9.5-ivy.xml
It would be nice if with Java I could use Ivy to determine that "1.9.5" is the latest version of the mockito/mockito-all module that we have.
This will most likely not be Ant's task, and instead there will most likely be some custom Java code using the classes that exist inside ivy.jar .
Any ideas? Thanks in advance!
user1768830
source share