문제

Is it possible to call and use the confi.ini file generated by RCP product in RCP plugin project ?

In the Configuration tab i've added two properies that i want to call and use in my RCP plugin project . The two properties are an URL adress and a KEY. I've added them in the config.ini so when I export my RCP product and deploy it later, other users could modify the KEY or the URL. I hope that my post is clear enough !

Thanks in advance.

Ismail

도움이 되었습니까?

해결책

Properties you define in the config.ini can be accessed using the standard System.getProperty("property-name") call.

When you are testing an RCP in Eclipse using a Run Configuration you can either specify the property in the Arguments tab, VM arguments part, using the format:

-Dproperty=value

Or you can specify a config.ini template on the Configuration tab. In either case you still use System.getProperty to access the value.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top