Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.0.0-alpha-2
-
None
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>