ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maarten Coene (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IVY-1114) FileSystem resolver rejects absolute path starting with file:
Date Tue, 24 Nov 2009 22:59:39 GMT

    [ https://issues.apache.org/jira/browse/IVY-1114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782221#action_12782221
] 

Maarten Coene commented on IVY-1114:
------------------------------------

I'm not sure it's a bug, the filesystem resolver doesn't work with URL's, even if they start
with file:// .
It is probably related to IVY-607

If you use Ivy from Ant, you maybe can workaround it by using ivy:configure with the "file"
attribute instead of the "url" attribute.

Maarten


> 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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message