Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Oomph preference recorder : plugin_customization.ini does not accept ${eclipse_home}
Oomph preference recorder : plugin_customization.ini does not accept ${eclipse_home} [message #1817283] Tue, 19 November 2019 19:54 Go to next message
Prashanth Parameshwara is currently offline Prashanth ParameshwaraFriend
Messages: 8
Registered: July 2016
Junior Member
Currently it throwing error message that target uri is invalid when target is initialized with eclipse home variable in plugin_customization.ini or am I missing something here?

org.eclipse.oomph.setup.ui/preference.recorder.target=${eclipse_home}configuration\\org.eclipse.oomph.setup\\installation.setup
org.eclipse.oomph.setup.ui/preference.recorder.target=${workspace.location|uri}/.metadata/.plugins/org.eclipse.oomph.setup/workspace.setup

Both the above values do not work.

Could you help to make a generic value to accept based on selected eclipse home folder or workspace folder.
Re: Oomph preference recorder : plugin_customization.ini does not accept ${eclipse_home} [message #1817294 is a reply to message #1817283] Wed, 20 November 2019 04:47 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30887
Registered: July 2009
Senior Member
I'm not sure which variables are available when the plugin_customization.ini is processed. Certainly you can't use Oomph's variables and whatever you specify in that file must evaluated by whatever, if anything, that evaluates variables there and must evaluated to exactly the correct file: URI.

If system properties are available for use in that file, osgi.instance.area is a file: URI for the location of the workspace and osgi.configuration.area is a file: URI for the location of the installation's configuration area.

Just keep in mind that what form of variable, if any, can be used in the plugin_customization.ini , evaluating that depends on how that file processed by the Eclipse runtime. No Oomph variable expansion will be applied to the final value you put in the preference.
Re: Oomph preference recorder : plugin_customization.ini does not accept ${eclipse_home} [message #1817359 is a reply to message #1817294] Thu, 21 November 2019 04:26 Go to previous message
Prashanth Parameshwara is currently offline Prashanth ParameshwaraFriend
Messages: 8
Registered: July 2016
Junior Member
Thanks for the quick response and help Merks :)

I managed to solve the problem by prepending file:/ to value. I understood that the path is directly serialized as URI string itself but not as "toFileString()".
Now the value looks: org.eclipse.oomph.setup.ui/preference.recorder.target=file:/${eclipse_home}configuration/org.eclipse.oomph.setup/installation.setup
Previous Topic:Launch Task not found after git import
Next Topic:Accessing location of setup file during setup
Goto Forum:
  


Current Time: Wed Feb 19 07:12:38 GMT 2020

Powered by FUDForum. Page generated in 0.03901 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top