Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-1163

add ability to programmatically change default resolver

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0-RC1
    • Core
    • 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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            maartenc Maarten Coene
            tormp Jason Trump
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment