aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <>
Subject [jira] [Created] (ARIES-1264) blueprint-ext could support ${env:USER} notation (for OS env variables)
Date Mon, 13 Oct 2014 15:52:34 GMT
Jean-Baptiste Onofré created ARIES-1264:

             Summary: blueprint-ext could support ${env:USER} notation (for OS env variables)
                 Key: ARIES-1264
             Project: Aries
          Issue Type: Improvement
          Components: Blueprint
            Reporter: Jean-Baptiste Onofré
            Assignee: Jean-Baptiste Onofré

In a blueprint descriptor, it's possible to use blueprint-ext to use Java System variable
(the ones passed as argument using -Duser=$USER) and used with something like:

<ext:property-placeholder placeholder-prefix="$[" placeholder-suffix="]"/>
<bean ...><property name="user" value="$[user]"/></bean>

In the org.apache.aries.blueprint.ext.PropertyPlaceholder, we do:

v = System.getProperty(val);

Additionnaly, it would be great to do System.getenv() to access the OS env variables, and
so being able to do:

<ext:property-placeholder placeholder-prefix="$[" placeholder-suffix="]"/>
<bean ...><property name="user" value="$[USER]"/></bean>

where USER has been set with something like this, for instance:

export USER=my

This message was sent by Atlassian JIRA

View raw message