You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by "Jain, Pankaj" <Pa...@gs.com> on 2008/01/28 12:15:47 UTC

Ivy dependency tree

Hi,

I am trying to get dependency tree (including transitive dependencies)
of a module.
I just need a dependency tree in a form of string and don't want to
actually download any of the dependent jars. 
Does ivy provides any way by which this can be acheived?


Example: Following works and I get a string dependency.tree. But I need
this without downloading dependent jars
        <ivy:cachepath organisation="org" module="module"
revision="latest.revision" inline="true" pathid="archive.classpath"
useOrigin="true"/>
        <property name="dependency.tree" refid="archive.classpath"/>
        <echo>${dependency.tree}</echo>



Thanks,
Pankaj


Re: Ivy dependency tree

Posted by Xavier Hanin <xa...@gmail.com>.
Ivy ant tasks do not support that, but you can use the Ivy API to set
download=false on the ResolveOptions used (check IvyResolve task to have an
example of how to call Ivy).

You can also open an improvement issue and provide a patch to implement this
in IvyResolve, it should be pretty easy (provide a junit and documentation
patch too to increase chance to get integrated).

Xavier

On Jan 28, 2008 12:15 PM, Jain, Pankaj <Pa...@gs.com> wrote:

> Hi,
>
> I am trying to get dependency tree (including transitive dependencies)
> of a module.
> I just need a dependency tree in a form of string and don't want to
> actually download any of the dependent jars.
> Does ivy provides any way by which this can be acheived?
>
>
> Example: Following works and I get a string dependency.tree. But I need
> this without downloading dependent jars
>        <ivy:cachepath organisation="org" module="module"
> revision="latest.revision" inline="true" pathid="archive.classpath"
> useOrigin="true"/>
>        <property name="dependency.tree" refid="archive.classpath"/>
>        <echo>${dependency.tree}</echo>
>
>
>
> Thanks,
> Pankaj
>
>


-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/