Uploaded image for project: 'Maven Resources Plugin'
  1. Maven Resources Plugin
  2. MRESOURCES-230

Can't escape the escape string

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 3.0.1
    • Fix Version/s: None
    • Component/s: escape string
    • Labels:
      None

      Description

      I have the following use case in a XML file:

          <variable name="xwikiDataDir" value="%APPDATA%\XWiki\${project.version}\data" condition="windowsSevenAndGreater"/>
      

      Before 3.0 it used to produce

          <variable name="xwikiDataDir" value="%APPDATA%\XWiki\8.2\data" condition="windowsSevenAndGreater"/>
      

      \ is now the default escape character, I'm fine with that but then it should be possible to escape the escape string which is buggy right now.

      The following source

          <variable name="xwikiDataDir" value="%APPDATA%\XWiki\\${project.version}\data" condition="windowsSevenAndGreater"/>
      

      gives me

          <variable name="xwikiDataDir" value="%APPDATA%\\XWiki\8.2\data" condition="windowsSevenAndGreater"/>
      

      Notice the still doubled \. The first one should be removed from the result.

      I tried escapeWindowsPaths bu it does not seems to be matching my string as a Windows path which is probably another bug.

      Since I can't find any way to disable escaping (see MRESOURCES-231),
      I ended up finding a character I don't have in my file and set it as escapeString.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tmortagne Thomas Mortagne
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: