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

escapeString using \ does not work correctly

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment