[
https://issues.apache.org/jira/browse/IVY-601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xavier Hanin updated IVY-601:
-----------------------------
Fix Version/s: 2.0
Description:
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>
was:
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>
> Ivy settings include -tag url attribute does not work correctly
> ---------------------------------------------------------------
>
> Key: IVY-601
> URL: https://issues.apache.org/jira/browse/IVY-601
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.0-alpha-2
> Reporter: Tero Vaananen
> Priority: Minor
> Fix For: 2.0
>
>
> 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.