ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From twogee <...@git.apache.org>
Subject [GitHub] ant-ivy issue #20: Fix IVY-1522
Date Sat, 20 May 2017 18:58:31 GMT
Github user twogee commented on the issue:

    https://github.com/apache/ant-ivy/pull/20
  
    I can assure you that colon in version has NEVER have worked on Windows. Test case
    
    ```
    import java.io.*;
    
    public class TestColonNTFS {
       public static void main(String[] args) throws IOException {
          try (Writer writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("file:name.txt"),
"utf-8"))) {
             writer.write("something");
          }
       }
    }
    ```
    produces
    
    ```
    >dir
    ...
    2017-05-20  20:39                 0 file
    ...
    >dir /r file
    ...
    2017-05-20  20:39                 0 file
                                      9 file:name.txt:$DATA
    ```
    And that is the correct behaviour of NTFS: create an [alternate data stream](https://msdn.microsoft.com/en-us/library/windows/desktop/aa364404).
You can use that for versioning, for sure ;-) But this is not portable.
    
    Now, should we introduce a special treatment for reserved and unsafe URL characters, we
will create a lock-in unless all other tools accept the same conventions, which is unlikely.
And that defeats the very idea of flexibility.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message