ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maarten Coene (JIRA)" <>
Subject [jira] Commented: (IVY-908) UNIX-style filenames for paths to work on MS-Windows
Date Wed, 17 Sep 2008 13:53:44 GMT


Maarten Coene commented on IVY-908:

You can already use "/" as path separator at the moment, you just have to be sure it isn't
a relative path.
On windows, relative paths start with "/" or "\", as your test demonstrates

So, if you use "/path/to/repository" in your settings.xml on windows, Ivy will complain that
it is not an absolute path.
Even if you use cygwin (which also runs on window), Ivy will complain, because the windows
JVM doesn't know you run it from cygwin

If you want your settings.xml to be portable between unix and windows, you'll have to use
properties in your paths, like "${keyFile.dir}/pub-keyfile" instead of "/path/to/keyfile/pub-keyfile".
Than you give this keyFile.dir a different value on unix and on windows

> UNIX-style filenames for paths to work on MS-Windows
> ----------------------------------------------------
>                 Key: IVY-908
>                 URL:
>             Project: Ivy
>          Issue Type: Improvement
>    Affects Versions: 2.0-RC1
>         Environment: cywgin on MS Wondows.
>            Reporter: Andy Seaborne
>            Priority: Minor
> A file name /path/to/repository is not absolute on MS-Windows.  A drive letter is needed.
> This is particularly confusing if using cygwin but is true when using Windows without
cygwin ("/" is an acceptable path separator).
> Leads to less portability between Linux and Windows.
> In 2.0-RC-1, more paths must be absolute (e.g filesystem resolver artifact pattern, keyfile
to sftp resolver).

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

View raw message