You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2016/09/02 08:44:20 UTC

[jira] [Resolved] (ARIES-1601) Support for nested property placeholders

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

Guillaume Nodet resolved ARIES-1601.
------------------------------------
       Resolution: Fixed
    Fix Version/s: blueprint-core-1.6.3

I choose a less disruptive way to fix the problem...

Committing to https://svn.apache.org/repos/asf/aries/trunk ...
	C	blueprint/blueprint-core/src/test/java/org/apache/aries/blueprint/ext/PropertyPlaceholderTest.java => blueprint/blueprint-noosgi/src/test/java/org/apache/aries/blueprint/ext/PropertyPlaceholderTest.java
	M	blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/ext/AbstractPropertyPlaceholder.java
	M	blueprint/blueprint-core/src/test/java/org/apache/aries/blueprint/ext/PropertyPlaceholderTest.java
	M	blueprint/blueprint-noosgi/src/main/java/org/apache/aries/blueprint/ext/AbstractPropertyPlaceholder.java
Committed r1758901


> Support for nested property placeholders
> ----------------------------------------
>
>                 Key: ARIES-1601
>                 URL: https://issues.apache.org/jira/browse/ARIES-1601
>             Project: Aries
>          Issue Type: Improvement
>          Components: Blueprint
>            Reporter: Luca Burgazzoli
>            Assignee: Guillaume Nodet
>             Fix For: blueprint-core-1.6.3
>
>
> As today property placeholders are resolved sequentially but it would be nice to have the possibility to resolve nested placeholders like:
> {code}
> ${jre-${java.specification.version}}
> {code}
> The problem in blueprint seems to be located in [AbstractPropertyPlaceholder|https://github.com/apache/aries/blob/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/ext/AbstractPropertyPlaceholder.java#L429-L455]
> I've been using StrSubstitutor from Commons-Lang and could be ported to blueprint-ext.
> See:
> - https://issues.apache.org/jira/browse/LANG-482 
> - https://commons.apache.org/proper/commons-lang/javadocs/api-3.4/org/apache/commons/lang3/text/StrSubstitutor.html



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