Hi Alex,

I answered to another user couple of days ago with the same question (system property in blueprint) and he said it works fine.

Can you check the actual value of user.home ?

I will try by my side.

Regards
JB

On 09/01/2016 07:45 PM, Alex Soto wrote:
Hello,  I have a blueprint bundle defined as:

    <blueprint
    xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0";
    xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0";
    xsi:schemaLocation="
                 http://www.osgi.org/xmlns/blueprint/v1.0.0
                 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd";>

    <ext:property-placeholder placeholder-prefix="$["
    placeholder-suffix="]" />

    <cm:property-placeholder persistent-id="my.config.id"
    update-strategy="reload" placeholder-prefix="#{" placeholder-suffix="}">
    <cm:default-properties>
     <cm:property name="my.file.name"
    value="$[user.home]/.other/somefile" />
    </cm:default-properties>
    </cm:property-placeholder>
    <bean id=“fileReader" class="org.FileReader">
    <argument value="#{my.file.name}" />
    </bean>



The $[user.home]  place holder is never substituted , so I get file not
found error on file name "$[user.home]/.other/somefile"
I have search everywhere but I can’t figure out what I am doing wrong.


Best regards,
Alex soto
alex.s...@envieta.com <mailto:alex.s...@envieta.com>




--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to