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

Substitution of variable fields enclosed in ${...} does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.6
    • None
    • filtering
    • None

    Description

      A variable field which is enclosed by ${...} does not get substituted during filtering. If the same variable field is not enclosed as described, the substitution works as expected.

      Before filtering:

      #!/usr/bin/env bash
      B=${A:-${maven.default}}
      
      DEFAULT="${maven.default}"
      C=${A:-${DEFAULT}}
      

      After filtering:

      #!/usr/bin/env bash
      B=${A:-${maven.default}}
      
      DEFAULT="Hello World"
      C=${A:-${DEFAULT}}
      

      The code snippet above also describes a possible workaround by defining a variable outside of ${...}.

      Attachments

        1. massembly-reproducer.tar.gz
          1 kB
          Markus Helm

        Activity

          People

            rfscholte Robert Scholte
            mhelm Markus Helm
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: