Ivy
  1. Ivy
  2. IVY-1163

add ability to programmatically change default resolver

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.2.0-RC1
    • Component/s: Core
    • Labels:
      None

      Description

      I would like the ability to change the default resolver programmatically. For example, from an Ant task. The API exists for this (IvySettings.setDefaultResolver), but it does not work reliably. The fix looks pretty easy.

      When you call IvySettings.setDefaultResolver, it changes the value of "defaultResolverName", of type String. However, it doesn't change the cache variable "defaultResolver". So if you've called IvySettings.getDefaultResolver once, it will always return the original value, even if you later try to change it with setDefaultResolver.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        15h 25m 1 Maarten Coene 24/Jan/10 14:15
        Maarten Coene made changes -
        Fix Version/s 2.2.0-RC1 [ 12315013 ]
        Fix Version/s trunk [ 12313426 ]
        Maarten Coene made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Maarten Coene [ maartenc ]
        Fix Version/s trunk [ 12313426 ]
        Resolution Fixed [ 1 ]
        Hide
        Maarten Coene added a comment -

        Applied you patch in SVN trunk.
        Thanks a lot for the contribution!

        Show
        Maarten Coene added a comment - Applied you patch in SVN trunk. Thanks a lot for the contribution!
        Jason Trump made changes -
        Field Original Value New Value
        Attachment ivy-1163-r902503.patch [ 12431227 ]
        Hide
        Jason Trump added a comment -

        patch with failing test case and a proposed fix.

        Show
        Jason Trump added a comment - patch with failing test case and a proposed fix.
        Jason Trump created issue -

          People

          • Assignee:
            Maarten Coene
            Reporter:
            Jason Trump
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development