Reputation: 564
We have a RCP application which includes domain specific configuration files(properties file, and few folders containing xml's) in its installation directory. We have provided update support through P2 framework which works for plug-ins and features, But now we are planning to provide update support for the configuration files as well.
Is it possible to update the configuration files with P2 framework?
Any link to do the same would be helpful.
Upvotes: 1
Views: 265
Reputation: 2182
What you need is the so-called "root files" (do not mix up with "root IU").
An example of those is org.eclipse.equinox.executable feature which includes the .exe/.so files which are installed to the root directory of your product.
There are several ways to achieve it, here the simplest one:
create the following entry in the /xyz.feature/build.properties:
root=root.files
Include this feature in your main feature / product configuration
You can examine the resulting p2 repo to see what p2 does exactly with this magic "root=" property key on export.
Upvotes: 3