Hi guys,
I want access a properties file packed inside an AAR service
(HelloService/resources/client.properties). I have tried below -

InputStream stream =
Client.class.getClassLoader().getResourceAsStream(ClientConstants.PROPERTIES_FILE_PATH);

The steam comes out as null. I doubled checked the path but it's correct. I
also saw this mail thread [1]. It doesn't have a conclusion for the problem.

[1] -
http://mail-archives.apache.org/mod_mbox/axis-java-user/200812.mbox/%[email protected]%3E

Cheers~

-- 
Chan (Dulitha Wijewantha)
Software Engineer - Mobile Development
WSO2 Inc
Lean.Enterprise.Mobileware
 * ~Email       [email protected] <[email protected]>*
*  ~Mobile     +94712112165*
*  ~Website   dulitha.me <http://dulitha.me>*
*  ~Twitter     @dulitharw <https://twitter.com/dulitharw>*
  *~Github     @dulichan <https://github.com/dulichan>*
  *~SO     @chan <http://stackoverflow.com/users/813471/chan>*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to