You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Arthur Branham (JIRA)" <ji...@apache.org> on 2008/06/19 23:27:45 UTC

[jira] Issue Comment Edited: (IVY-844) Add hook for setting RelativeUrlResolver implementation in IvySettings

    [ https://issues.apache.org/jira/browse/IVY-844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606563#action_12606563 ] 

arthur.branham edited comment on IVY-844 at 6/19/08 2:26 PM:
-------------------------------------------------------------

I'm sorry.  You are correct.  They do expand.   I couldn't get them to expand in a custom attribute and so I assumed it was the case for all attributes.

      was (Author: arthur.branham):
    I'm sorry.  You are correct.  They do expand.  
  
> Add hook for setting RelativeUrlResolver implementation in IvySettings
> ----------------------------------------------------------------------
>
>                 Key: IVY-844
>                 URL: https://issues.apache.org/jira/browse/IVY-844
>             Project: Ivy
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>            Reporter: Arthur Branham
>             Fix For: 2.0-RC1
>
>
> 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>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.