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

Turn Off '@' Escape Filtering

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.6
    • None
    • None

    Description

      I'm trying to filter a groovy script with @Grab annotations like so:

      @Grab(group='com.neosgeo.neosphere.ops', module='host-ops', version='${project.version}')
      

      ${project.version} won't filter. If you use

      @Grab(
        group='com.neosgeo.neosphere.ops', module='host-ops', version='${project.version}')
      

      it does.

      Note that

      \@Grab(group='com.neosgeo.neosphere.ops', module='host-ops', version='${project.version}')
      

      with

      <escapeString>\</escapeString>
      

      is useless.

      There doesn't appear to be anyway to escape the single @ so it isn't interpreted as a filter token, or to turn off '@' as a token entirely.

      Attachments

        1. test-resouce-escape.tar.gz
          3 kB
          louspringer

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              louspringer louspringer
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: