[ 
https://issues.apache.org/jira/browse/MASSEMBLY-800?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Markus Helm updated MASSEMBLY-800:
----------------------------------
    Description: 
eA 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:
{code}
#!/usr/bin/env bash
B=${A:-${maven.default}}

DEFAULT="${maven.default}"
C=${A:-${DEFAULT}}
{code}

After filtering:
{code}
#!/usr/bin/env bash
B=${A:-${maven.default}}

DEFAULT="Hello World"
C=${A:-${DEFAULT}}
{code}

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

  was:
eA 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:
{code}
#!/usr/bin/env bash
B=${A:-${maven.default}}

DEFAULT="${maven.default}"
C=${A:-${DEFAULT}}
{code}

After filtering:
{code}
#!/usr/bin/env bash
B=${A:-${maven.default}}

DEFAULT="Hello World"
C=${A:-${DEFAULT}}
{code}

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


> Substitution of variable fields enclosed in ${...} does not work
> ----------------------------------------------------------------
>
>                 Key: MASSEMBLY-800
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-800
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>          Components: filtering
>    Affects Versions: 2.6
>            Reporter: Markus Helm
>            Priority: Minor
>         Attachments: massembly-reproducer.tar.gz
>
>
> eA 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:
> {code}
> #!/usr/bin/env bash
> B=${A:-${maven.default}}
> DEFAULT="${maven.default}"
> C=${A:-${DEFAULT}}
> {code}
> After filtering:
> {code}
> #!/usr/bin/env bash
> B=${A:-${maven.default}}
> DEFAULT="Hello World"
> C=${A:-${DEFAULT}}
> {code}
> The code snippet above also describes a possible workaround by defining a 
> variable outside of {{*$\{...\}*}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to