jonleech
jonleech

Reputation: 461

Exported Eclipse RCP application reading a local properties file

I developing a plugin which reads from a .properties file for the database connection, but after exporting the plugin, the .properties file is wrapped up inside the jar'ed plugin and not able to be changed on the fly.

did some research, some suggested creating fragments or features to compliment the reading of the properties file on the fly and points to

http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.pde.doc.user/reference/pde_feature_generating_build.htm

tried using eclipse to creature fragments but am lost as in how to create a feature t

Upvotes: 1

Views: 1455

Answers (1)

NickG
NickG

Reputation: 361

You could install the properties file in the root of the target Eclipse installation (or the root of your RCP application). You can then access it using Platform.getInstallLocation().

With regards to creating a feature, the Eclipse RCP tutorial "Creating a Rich Client Application" contains a section entitled "Define a feature-based product".

Upvotes: 1

Related Questions