I have an RCP Eclipse product that defines the -configuration folder to be in a different location from the exe and ini files. When I specify the path to configuration in the ini as relative to the exe, launching the product only works when launched from the directory of the exe.
Ie: /home/Sheldon>product.exe
Launching from another directory fails, unless the configuration path is set to an absolute path in the ini file.
Ie: >/home/Sheldon/product.exe
This is not the case for the startup or launcher.library variables.
Is there a way to support this setup with a relative configuration path?
I rarely like to close my own question without a comment or an anwser, but I did come to a conclusion and I think it is the best answer at this time.
I do not believe this is possible, without modifying the eclipse source.
In particular, LocationManager : buildLocation.
So, the best compromise is to place the
configurationfolder adjacent to thepluginsfolder. It is fine for thepluginsfolder to be in a relative path. For example, a validproduct.iniwith these folders in relative path would look like:This means that the
configurationfolder MUST exist in../Common/configurationto have a relative path. Any other folder will require an absolute path, or usage of one of the less than useful replacement variables, {@NoDefault,@None,@user.dir,@user.home}.