Le 27 mai 2011 à 07:51, Bob Lee a écrit :

> I'm trying to integrate Ivy into a custom module system. I'm using Ivy's API
> directly. I want to use Ivy to resolve and download external dependencies
> (which are declared in a custom way), but I *don't* want to use Ivy to
> manage the internal modules and dependencies. I think this is similar to how
> Gradle uses Ivy.
> 
> Basically, I just want to use Ivy to gather up any dependencies outside of
> my project and to report any conflicts. I'm considering writing dummy Ivy
> files (one per internal module) to a hidden directory and then running
> Ivy. Is there a more elegant way I can implement this without writing XML
> files, perhaps with a custom DependencyResolver or something?

You can use the plain Java API.
First get Ivy instance, see org.apache.Ivy#newInstance()
Then call ivy.resolve(moduledescriptor, options), moduledescriptor being the 
java model of an ivy.xml which you can build from scratch in Java.

Nicolas

Reply via email to