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

Resource filtering does not work if line contains single @

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4
    • 2.4.1
    • filtering
    • None

    Description

      I want to include and filter Microsoft SQL Server SQL-files. SQL Server has extended properties which are declared as (extended property "Version" on a database):

      exec DB.sys.sp_addextendedproperty
        @name='Version'
      , @value='${project.version}'
      go
      

      However, if I filter the file which contains this call the expression ${project.version} is not been replaced. I get it working only when adding a second "@"

      exec DB.sys.sp_addextendedproperty
        @name='Version'
      , @value='@${project.version}'
      go
      

      This evaluates to

      exec DB.sys.sp_addextendedproperty
        @name='Version'
      , @value='@2.03.002'
      go
      

      However the "@" is not really wanted.

      Thank you.

      PS: Please rename attached "test.txt" to "test.sql". Got an server error while trying to upload "test.sql".

      Attachments

        1. assembly.xml
          0.7 kB
          Michael Gruebsch
        2. pom.xml
          1 kB
          Michael Gruebsch
        3. test.txt
          0.2 kB
          Michael Gruebsch

        Issue Links

          Activity

            People

              khmarbaise Karl Heinz Marbaise
              mgruebsch Michael Gruebsch
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: