incubator-ivy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maarten Coene (JIRA)" <>
Subject [jira] Resolved: (IVY-601) Ivy settings include -tag url attribute does not work correctly
Date Fri, 21 Sep 2007 11:27:51 GMT


Maarten Coene resolved IVY-601.

       Resolution: Fixed
    Fix Version/s:     (was: 2.0)

You had 2 problems:

1. The problem with the second include should now be fixed.

2. The problem with the included files is not fixed. It is caused by the way you include these
settings files and the value of the ivy.conf.dir property. If you include another settings
file using the "url" attribut, the value of the ivy.conf.dir will be "file:/some/directory".
However, if you include the other settings file with the "file" attribute, the value of the
ivy.conf.dir property will be "/some/directory". 

This is not a bug, it's just the way it works. However, to avoid such kind of problems in
the future, we will introduce a new variable: ivy.settings.base.url which points to the same
path of ivy.conf.dir, but which is always an url and can always be used as value of the url
attribute (cfr IVY-607).

> Ivy settings include -tag url attribute does not work correctly
> ---------------------------------------------------------------
>                 Key: IVY-601
>                 URL:
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-alpha-2
>            Reporter: Tero Vaananen
>            Assignee: Maarten Coene
>            Priority: Minor
>             Fix For: 2.0.0-beta-1
> The include tag behaves strangely when it is used two or more times. The url attribute
should take a valid URL but it fails after the first include definition. It is possible to
make it work by removing the protocol from the second include URL. This is an easy workaround
but it does not work in the included settings files themselves. You can then no longer reuse
the included files as main level settings files because they break with bad URLs.
> <ivysettings>
>     <settings defaultResolver="main"/>
>     <include url="file:${ivy.conf.dir}/ivy-personal-resolver.xml"/>
>     <!-- For some strange reason, the file: protocol can not be put to second include.
>     <include url="${ivy.conf.dir}/ivy-shared-resolver.xml"/>
> </ivysettings>

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

View raw message