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

ASF subversion and git services commented on TAMAYA-340:
--------------------------------------------------------

Commit 7352d6ae062224a0c72f7524f43a072f9464fbb6 in incubator-tamaya's branch 
refs/heads/master from [~wlieurance]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-tamaya.git;h=7352d6a ]

TAMAYA-340 Bugfix for regex "\\." vs literal "."

String.replaceAll(String, String) takes a regex as its first argument,
not a literal replaceable string.  The result of this is that any
single-character environment variable is converted to use the "_" key
which has special significance to the system.  Tests in the extensions
repo include some that have a single character which this change should
get working again.  I've included a test in this repo for that case as
well.


> Alternative property keys for environment variables
> ---------------------------------------------------
>
>                 Key: TAMAYA-340
>                 URL: https://issues.apache.org/jira/browse/TAMAYA-340
>             Project: Tamaya
>          Issue Type: New Feature
>            Reporter: Harald Wellmann
>            Assignee: Anatole Tresch
>            Priority: Major
>             Fix For: 0.4-incubating
>
>
> h3. Background
> Some operating systems (e.g. Windows) do not support dots in environment 
> variable names.
> h3. Goals
> When looking up a config value for key {{foo.bar.blah}}, Tamaya should also 
> try the fallback key {{FOO_BAR_BLAH}}.
> This is also part of the [Config JSR 
> requirements|https://github.com/eclipse/ConfigJSR/blob/25edda2914155ac6b30f821f9ef13e92b7350a3a/spec/src/main/asciidoc/configsources.asciidoc],



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to