Hi Awanthika,

IMO you can achieve this using a util method, where you resolve system
parameters pragmatically. Don't know about any existing libraries to get
this done :)

On Tue, Mar 17, 2015 at 10:27 AM, Awanthika Senarath <[email protected]>
wrote:

> Hi Lasithan,
>
> my requirement is to get an existing env varibale from a json file.
>
> regards
> Awanthika
>
> On Tue, Mar 17, 2015 at 10:25 AM, Lasitha Wattaladeniya <[email protected]
> > wrote:
>
>> Hi awanthika, check this out
>> http://stackoverflow.com/questions/1462069/passing-environment-variables-to-a-jvm-in-a-platform-independent-manner
>>
>> On Tue, Mar 17, 2015 at 9:38 AM, Awanthika Senarath <[email protected]>
>> wrote:
>>
>>> Hi,
>>>
>>> Im trying to achieve $subject to pass the $CATALINA_HOME environment
>>> variable into a java class via a json object to a java class
>>>
>>> when i try to pass the parameter as this
>>>
>>> "location":
>>> "${CATALINA_BASE}/temp/che-templates/web-spring-java-simple.zip"
>>>     the catalina_base/catalina_homa parameter is not recognized as a
>>> dynamic value at the java class. It will print an IOException saying
>>>
>>> java.io.IOException: Can't
>>> find ${CATALINA_BASE}/temp/che-templates/web-spring-java-simple.zip
>>>
>>> Appreciate help on resolving this.
>>>
>>>
>>> regards
>>>
>>> --
>>> Awanthika Senarath
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94717681791
>>>
>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Lasitha Wattaladeniya
>> Software Engineer
>> WSO2, Inc. | http://wso2.com
>> lean. enterprise. middleware
>>
>> Mobile : +94719397528
>> Blog : techreadme.blogspot.com
>>
>
>
>
> --
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>


-- 
Lasitha Wattaladeniya
Software Engineer
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

Mobile : +94719397528
Blog : techreadme.blogspot.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to