Hi Kambiz,
you can do that by
<%
var process = require("process");
var f = new
File('file:///'+process.getProperty('carbon.home')+'/repository/conf/test.json');
f.open('r');
print(f.readAll());
%>
Regards,
/Nuwan
On Tue, Jul 30, 2013 at 3:29 PM, Kambiz Darabi <[email protected]>wrote:
> Hello,
>
> in a jaggery app, I would like to load a json file from
> $CARBON_HOME/repository/conf/.
>
> Looking into the code of the host objects, it looks like I either can
> load a file relative to the root of the jaggery app (i.e. relative to
> deployment/server/jaggeryapps/<myapp>/) or I need to specify a full
> path.
>
> Is there another possibility which I am overlooking?
>
> Thanks
>
>
> Kambiz Darabi
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
--
*Thanks & Regards,
Nuwan Bandara
Technical Lead; **WSO2 Inc. *
*lean . enterprise . middleware | http://wso2.com *
*blog : http://nuwanbando.com; email: [email protected]; phone: +94 11 763 9629
*
<http://www.nuwanbando.com/>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev