ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kirby Files <Kfi...@masergy.com>
Subject RE: picking up wrong resolver
Date Mon, 13 Dec 2010 14:25:03 GMT
I may be misunderstanding what you're trying to do, but to me, it appears you're listing the
wrong module in the module resolver mappings. These mappings tell ivy, for a given dependency
(or matching wildcard, which resolver to use. You're listing the module on which you are attempting
resolution, rather than its dependencies.

So I would put:
  <modules>
      <module organisation="jquery" name="jquery" resolver="jquery"/>
  </modules>

in your ivysettings

http://ant.apache.org/ivy/history/latest-milestone/settings/modules.html

Hmm, I see that the docs don't exactly clear up your confusion. You might want to open a doc
bug describing improved wording which explains that the matcher is for matching dependent
modules.

Thanks,
---
Kirby Files
Software Architect
Masergy Communications
kfiles@masergy.com
________________________________________
From: Kelly, Sean [Sean.Kelly@disney.com]
Sent: Friday, December 10, 2010 6:52 PM
To: 'ivy-user@ant.apache.org'
Subject: picking up wrong resolver

Hi All,

I'm try to pull down jquery from the google CDN with the following module and settings - but..
the module yoda attempts to use the defaultResolver specified in the settings as opposed to
the resolver named in the module attribute ? - can someone point out where I'm going wrong
.

Thanks

Sean

<ivy-module version="1.0">
  <info organisation="com.disney" module="yoda"/>
  <dependencies>
    <dependency org="jquery" name="jquery" rev="1.4.4">
      <artifact name="jquery.min" ext="js"/>
    </dependency>
  </dependencies>
</ivy-module>

<ivysettings>
                <properties file="${ivy.settings.dir}/ivysettings.properties"/>
  <settings defaultResolver="jquery-tools"/>
  <resolvers>
    <url name="jquery">
      <artifact pattern="https://ajax.googleapis.com/ajax/libs/jquery/[revision]/jquery.min.[ext]"
/>
    </url>
    <url name="jquery-tools">
      <artifact pattern="http://cdn.jquerytools.org/[revision]/full/[artifact].[ext]" />
    </url>
  </resolvers>

                <modules>
                                <module organisation="com.disney" name="yoda" resolver="jquery"/>
                </modules>
</ivysettings>

Sean Kelly, Senior Staff Software Engineer
Kerpoof Studios
Disney Interactive Media Group

www.disney.com<http://www.disney.com> | +1.303.551.7220 x117(o) | +1.303.551.7227 (f)
| 1215 Spruce Street, Suite 301, Boulder, CO 80302



Mime
View raw message