Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-78

FilteringUtils escapeWindowsPath() doesn't work on Windows

    XMLWordPrintableJSON

Details

    • Patch

    Description

      The method escapeWindowsPath() is replacing colon by backslash + colon.
      I.e.
      D:\temp
      is escaped as
      D\:
      temp

      But windows doesn't recognize that. If you try to open D\:
      temp on explorer, will not work.
      Even java.io.File is not able to handle that too. The attached test proves it.

      I'm not sure why this backslash was add to colon, but commenting line 44 of org.apache.maven.shared.filtering.FilteringUtils make the test work.

      Attachments

        1. filtering.patch
          0.9 kB
          velo
        2. FilteringUtilsTest.java
          0.8 kB
          velo

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              velo velo
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: