ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin" <xavier.ha...@gmail.com>
Subject Re: Classifier frustration
Date Sat, 19 Apr 2008 10:01:48 GMT
On Sat, Apr 19, 2008 at 11:45 AM, Jim White <jim@pagesmiths.com> wrote:

> Xavier Hanin wrote:
>
>  On Thu, Apr 17, 2008 at 11:54 AM, Jim White <jim@pagesmiths.com> wrote:
> > ...
> >
> > >
> > > I put an attribute named 'xmlns:m2' in the root element and then I can
> > > do
> > > this:
> > >
> > > XWINGS.IVY {
> > >  info(organisation:"org.ifcx", module:"WingsIvyTest")
> > >  dependencies {
> > >     dependency(org:'net.sf.json-lib', name:'json-lib', rev:'2.2.1'
> > >         , conf:'default->runtime')
> > >     {
> > >         artifact(name:'json-lib', type:'jar'
> > >             , 'm2:classifier':'jdk15')
> > >     }
> > >  }
> > > }
> > >
> > > And that works to get the right artifact the first time.
> > >
> > > Now the trouble is that if you change the value of the classifier Ivy
> > > doesn't notice that the artifact in the local cache is wrong.  I think
> > > that
> > > the classifier needs to be appended to the module name in the cache
> > > for this
> > > to work properly.
> > >
> >
> > You're probably right, could you plse open an issue in jira? Obviously
> > the
> > workaround is to set the cache pattern yourself.
> >
>
> https://issues.apache.org/jira/browse/IVY-803
>
> I spent a fair while fiddling with patterns (although most was wasted
> because I didn't recognized the difference between 'local' and 'cache'), and
> never did figure out what to set where.


You have to set the artifactPattern on caches element:
http://ant.apache.org/ivy/history/latest-milestone/configuration/caches.html

Example:
<ivysettings>
<caches
artifactPattern="[organisation]/[module]/[type]s/[artifact]-[revision](-[classifier]).[ext]"
/>
</ivysettings>

HTH,

Xavier


>
> Jim
>
>


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

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