Uploaded image for project: 'Maven Assembly Plugin'
  1. Maven Assembly Plugin
  2. MASSEMBLY-674

escapeString using \ does not work correctly

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Auto Closed
    • 2.4
    • None
    • filtering
    • None

    Description

      Using <escapeString>\</escapeString> does not correctly when dealing with case where previous text is also a \.
      attached pom,test and assembly.xml show what happens. The follwoing scenario is currently fail: (varible=Hello)

      C:\path\\${variable}
      

      converted to

      C:\path\\Hello
      

      I would of expected:

      C:\path\${variable}
      

      The following does work but is not exactly as required as it means you get get two \'s

      C:\path\\\${variable}
      

      converted to

      C:\path\\${variable}
      

      Attachments

        1. escapeStringBug.zip
          3 kB
          Iain Coulter

        Issue Links

          Activity

            People

              Unassigned Unassigned
              iaincoulter Iain Coulter
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: