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

Maarten Coene commented on IVY-909:
-----------------------------------

I've extended the error message a bit so that the reason for the failure is 
also logged, you should see now:

{noformat}
BUILD FAILED
C:\projects\ivy\trunk\build.xml:43: impossible to configure ivy:settings with gi
ven file: C:\projects\ivy\trunk\ivysetting-publish.xml : java.text.ParseExceptio
n: failed to load settings from file:/C:/projects/ivy/trunk/ivysetting-publish.x
ml: impossible to convert /test to class java.io.File for setting keyFile on cla
ss org.apache.ivy.plugins.resolver.SshResolver: ssh.keyFile must be absolute: /t
est
{noformat}

What do you think?

> Error messages on use of relative paths can be cyrptic
> ------------------------------------------------------
>
>                 Key: IVY-909
>                 URL: https://issues.apache.org/jira/browse/IVY-909
>             Project: Ivy
>          Issue Type: Improvement
>    Affects Versions: 2.0-RC1
>            Reporter: Andy Seaborne
>            Priority: Minor
>
> Use of a relatrive path (file system resolver, keyfile for sftp) results in a 
> message like:
> BUILD FAILED
> c:\home\afs\Projects\TDB\build-lib.xml:357: impossible to configure 
> ivy:settings with given file: c:\home\afs\Projects\TDB\ivysettings.xml : 
> java.text.ParseException: failed to load settings from 
> file:/c:/home/afs/Projects/TDB/ivysettings.xml: impossible to convert 
> /home/afs/.ssh/ivy-pub-jena-key to class java.io.File for setting keyFile on 
> class org.apache.ivy.plugins.resolver.SFTPResolver
> A more direct statement that "keyFile=" is realtive would be helpful 
> (in the example, this is MS Windows - an absolute file name must have a drive 
> letter).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to