You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Marcin Wisnicki (JIRA)" <ji...@apache.org> on 2013/07/17 17:34:48 UTC
[jira] [Commented] (IVY-1114) FileSystem resolver rejects absolute
path starting with file:
[ https://issues.apache.org/jira/browse/IVY-1114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13711181#comment-13711181 ]
Marcin Wisnicki commented on IVY-1114:
--------------------------------------
Using {{<ivy:configure file="..."/>}} does not help.
> FileSystem resolver rejects absolute path starting with file:
> -------------------------------------------------------------
>
> Key: IVY-1114
> URL: https://issues.apache.org/jira/browse/IVY-1114
> Project: Ivy
> Issue Type: Bug
> Affects Versions: 2.1.0-RC2
> Reporter: Dobes Vandermeer
>
> I created two ivysettings.xml files and included one from the other.
> The one being included (the shared ivysettings.xml) has a resolver like this:
> <filesystem name="lib-folder">
> <ivy pattern="${ivy.settings.dir}/lib/[module]-[artifact]-[revision].[ext]" />
> <artifact pattern="${ivy.settings.dir}/lib/[artifact]-[revision].[ext]" />
> </filesystem>
> I get an error as follows:
> impossible to configure ivy:settings with given file: ivysettings.xml : java.text.ParseException: failed to load settings from file:/C:/work/books/booksProject/booksApi/ivysettings.xml: problem in config file: failed to load settings from file:/C:/work/books/booksProject/booksLib/ivysettings.xml: impossible to add configured child for ivy on class org.apache.ivy.plugins.resolver.FileSystemResolver: ivy pattern must be absolute: file:/C:/work/books/booksProject/booksLib/lib/[module]-[artifact]-[revision].[ext]
> As you can see, the path IS absolute but it's using a file: URL because ${ivy.settings.dir} is now a URL instead of just a regular path. I tried to create other variables in my build.xml but to no avail - thus, I can't figure out how to define a shared repository configuration where the repository path is relative to ivysettings.xml.
> Any workarounds while I wait for a fix?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira