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

Add hook for setting RelativeUrlResolver implementation in IvySettings

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

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-beta-2
    • 2.0-RC1
    • Core
    • None

    Description

      IvySettings.getRelativeUrlResolver always returns a new NormalRelativeUrlResolver. I would like to see a hook made available to set a custom implemenatation of the url resolver, whether it be setting a thread safe reusable instance or a factory to create a new instance for each use.

      My interest in this comes from the fact that ant properties are not expanded in dependency module descriptors. I have module descriptors which import their configurations from a common location. The path of that location will be OS specific based on where Ivy is running. I would therefor need a custom relative url resolver which expands properties before constructing a URL object as done in the NormalRelativeUrlResolver.

      The following is possible right now, but would not work if running from windows.
      <configurations>
      <include file="/repository/org/mod/rev/etc/ivyconfigurations.xml" />
      </configurations>

      An ideal fix for the problem would be:
      <configurations>
      <include file="${repository}/org/mod/rev/etc/ivyconfigurations.xml" />
      </configurations>

      Attachments

        Activity

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

          People

            maartenc Maarten Coene
            arthur.branham Arthur Branham
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment