You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Jamie Wither (JIRA)" <ji...@apache.org> on 2010/01/07 13:21:54 UTC

[jira] Commented: (IVY-1112) [PATCH] Do not use unsupported characters (" * : < > ? \ / |) in Windows filenames

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

Jamie Wither commented on IVY-1112:
-----------------------------------

This patch only works for me if I change the windows detection routine to convert the os name to lowercase as follows:

           windowsPlatform = System.getProperty("os.name").toLowerCase().indexOf("windows") > -1;</>


> [PATCH] Do not use unsupported characters (" * : < > ? \ / |) in Windows filenames
> ----------------------------------------------------------------------------------
>
>                 Key: IVY-1112
>                 URL: https://issues.apache.org/jira/browse/IVY-1112
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0, 2.1.0-RC1, 2.1.0-RC2
>         Environment: Windows, NTFS
>            Reporter: Brian Sanders
>            Priority: Minor
>         Attachments: WindowsFilenameCharacters.patch
>
>
> Windows disallows certain characters in filenames (" * : < > ? \ / |) which are valid org or module values.  Ivy should strip these characters (possibly in IvyPatternHelper) when building filenames on Windows.
> Particularly, the built-in Ivy support in the JetBrains build server TeamCity uses colons as part of module names.  When resolving artifacts on Linux, everything works as expected.  On Windows, resolution fails when writing the file to cache because the filename "resolved-org.example-foo::bar-1.0.xml" cannot be created under windows.

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