You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-commits@incubator.apache.org by "Tero Vaananen (JIRA)" <ji...@apache.org> on 2007/08/30 19:04:30 UTC
[jira] Created: (IVY-601) Ivy settings include -tag url attribute
does not work correctly
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
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.
[jira] Updated: (IVY-601) Ivy settings include -tag url attribute
does not work correctly
Posted by "Xavier Hanin (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Assigned: (IVY-601) Ivy settings include -tag url attribute
does not work correctly
Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maarten Coene reassigned IVY-601:
---------------------------------
Assignee: Maarten Coene
> 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
> Assignee: Maarten Coene
> 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.
[jira] Resolved: (IVY-601) Ivy settings include -tag url attribute
does not work correctly
Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maarten Coene resolved IVY-601.
-------------------------------
Resolution: Fixed
Fix Version/s: (was: 2.0)
2.0.0-beta-1
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: 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
> 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.
[jira] Commented: (IVY-601) Ivy settings include -tag url attribute
does not work correctly
Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529269 ]
Maarten Coene commented on IVY-601:
-----------------------------------
I was able to reproduce this issue now
> 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.
[jira] Commented: (IVY-601) Ivy settings include -tag url attribute
does not work correctly
Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524464 ]
Maarten Coene commented on IVY-601:
-----------------------------------
I cannot reproduce this issue.
Could you give more information, such as:
- what's the value of your ivy.conf.dir property
- how do you configure ivy
- what's the error message you see
Maarten
> 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.