Skip to main content



      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 14:54 Go to next message
Eclipse UserFriend
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] Tue, 19 November 2019 23:47 Go to previous messageGo to next message
Eclipse UserFriend
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] Wed, 20 November 2019 23:26 Go to previous message
Eclipse UserFriend
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:Is there a 'Drag to Install' equivalent for Product Catalogs?
Goto Forum:
  


Current Time: Wed Jul 16 18:17:51 EDT 2025

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

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

Back to the top