ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Poli <James.P...@sas.com>
Subject Programatically change the default cache manager
Date Wed, 04 Dec 2013 16:54:52 GMT
Hello,

I'm using Ivy 2.2.0 and trying to programmatically change the default cache manager and useOrigin
value in a custom Ivy Ant task after the ivy settings file has been processed by Ivy configure
task.  It doesn't appear to be using the new default cache with findrevision and resolve (i.e.
in the resolvers)?   Is there extra processing I need to do with the resolvers already defined
and processed by configure?

Thanks in advance,
Jim

<CODE SNIPPET>
    ...
    Ivy ivy = getIvyInstance();
    IvySettings settings = ivy.getSettings();
    DefaultRepositoryCacheManager cacheManager = new DefaultRepositoryCacheManager();
    cacheManager.setName("test-cache");
    settings.addRepositoryCacheManager(cacheManager);
    settings.setDefaultRepositoryCacheManager(cacheManager);
    settings.setDefaultUseOrigin(true);
    ...


<LOG OUTPUT>
    ...
    [ivy:findrevision] default-cache: cached resolved revision expired...
    ...
    [ivy:resolve] default-cache: cached resolved revision expired
    ...

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