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

Can't escape the escape string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Won't Fix
    • 3.0.1
    • None
    • escape string
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: