You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Markus Helm (JIRA)" <ji...@apache.org> on 2016/03/18 21:48:33 UTC

[jira] [Comment Edited] (MASSEMBLY-800) Substitution of variable fields enclosed in ${...} does not work

    [ https://issues.apache.org/jira/browse/MASSEMBLY-800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15202133#comment-15202133 ] 

Markus Helm edited comment on MASSEMBLY-800 at 3/18/16 8:47 PM:
----------------------------------------------------------------

Attached the reproducer !massebly-reproducer.tar.gz!.

Build with {{mvn clean package}} and have a look at {{src/main/resources/massembly.sh}} and {{target/resources/massembly.sh}}.


was (Author: mhelm):
Build with {{mvn clean package}} and have a look at {{src/main/resources/massembly.sh}} and {{target/resources/massembly.sh}}.

> 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
>
>
> 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:
> {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)