ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: what's the difference between ivysettings and ivyconf
Date Thu, 12 Jun 2008 19:07:18 GMT
Thanks, Jim.

I think I may not make my question very clear.
Give two examples here:

Number one extracted from book <<Ant in action>>

   <property name="ibiblio-maven2-root" 
value="" override="false"/>
  <property name="maven2.pattern" 
value="[organisation]/[module]/[revision]/[module]-[revision]" />
  <property name="maven2.pattern.ext" value="${maven2.pattern}.[ext]" />
  <include url="${ivy.default.conf.dir}/ivyconf-local.xml"/>
  <conf defaultResolver="default"/>
  <filesystem name="team" ivys="true" artifacts="true" m2compatible="true" 
    <artifact pattern= 
    <ivy pattern= "${ivy.conf.dir}/repository/${maven2.pattern}.xml"/>
  <ibiblio name="maven2" root="${ibiblio-maven2-root}" 
pattern="${maven2.pattern.ext}" m2compatible="true" />
  <chain name="default" dual="true">
     <resolver ref="local"/>
     <resolver ref="team"/>
     <resolver ref="maven2"/>

Number two from example of Ivy

  <settings defaultResolver="chain-example"/>
    <chain name="chain-example">
      <filesystem name="libraries">
pattern="${ivy.settings.dir}/repository/[artifact]-[revision].[ext]" />
      <ibiblio name="ibiblio" m2compatible="true" />

Both examples define a chain and I would like to say both can work 
So what's the difference.


Jim/Jim Huang

Jim White <> 
06/12/2008 11:46 AM
Please respond to


Re: what's the difference between ivysettings and ivyconf

Others can no doubt explain this better, but I'll make a stab.

An Ivy Settings file defines such things as repository and module name 
resolution schemes and is used by the Ivy Configure Ant task.

An Ivy Configuration is a name (actually a kind of pattern) for choosing 
a particular set of depedencies (like "compile", "test", "default").

It is very unfortunate though that the Ivy Settings file is principal 
parameter for the ivy:configure task, which no doubt makes this more 
prone to confusion than desireable.

Also the Ivy Settings file format is described by a page with 
"configuration" in the URL, which goes along with the idea that it used 
by the Configure task but not the configure attribute of the Resolve task.

Whereas an Ivy Configuration in an Ivy File is described here:

So the configure attribute of the Ivy Resolve Ant task is actually 
talking about a "configuration" in the Ivy File sense, not Ivy Configure 
Ant task sense.

Jim wrote:

> Hi ,
> I'm new user of IVY.
> I'm quite confused by ivysettings and ivyconf . 
> Both are very similar and I don't really understand why IVY need both.
> Does anyone can explain the difference?
> Thanks in advance.
> Jim/Jim Huang

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message