Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » preferences under a product
preferences under a product [message #1626473] Sat, 21 February 2015 01:41 Go to next message
Bryan Hunt is currently offline Bryan HuntFriend
Messages: 366
Registered: July 2009
Senior Member
I have made some progress with my model and I have defined my own product. I have some preferences defined as children of the product, but they don't seem to be applied by the installer. Here is an example of a preference that was not set:

    
<setupTask
    xsi:type="setup:PreferenceTask"
    key="/instance/org.eclipse.jdt.ui/smart_opening_brace"
    value="true">
  <description>Enable smart open brace</description>
</setupTask>


Am I missing something?
Re: preferences under a product [message #1626516 is a reply to message #1626473] Sat, 21 February 2015 02:16 Go to previous messageGo to next message
Bryan Hunt is currently offline Bryan HuntFriend
Messages: 366
Registered: July 2009
Senior Member
I think I discovered part of the problem. When I created my own index, I set the following redirections in the oomph.ini:

-Doomph.redirection.setups=http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/->http://192.168.1.10/eclipse/
-Doomph.redirection.index=http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/org.eclipse.setup->http://192.168.1.10/eclipse/com.nvidia.setup

Without the second redirect, the installer can't find the index model. When I bring up installation.setup in the installed product, the product version is:

<productVersion
href="index:/org.eclipse.setup#//@productCatalogs[name='com.nvidia.products']/@products[name='epp.package.jee']/@versions[name='mars']"/>

It seems the installed product does not use the URI mapping from org.eclipse.setup to com.nvidia.setup. If I hack the installation.setup and replace org.eclipse.setup with com.nvidia.setup the preferences get set when I do an update.
Re: preferences under a product [message #1626529 is a reply to message #1626516] Sat, 21 February 2015 02:27 Go to previous message
Bryan Hunt is currently offline Bryan HuntFriend
Messages: 366
Registered: July 2009
Senior Member
Ok, so it seems the solution is to remove the redirect:

-Doomph.redirection.index=http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/org.eclipse.setup->http://192.168.1.10/eclipse/com.nvidia.setup

and rename com.nvidia.setup to org.eclipse.setup

This makes it all work.
Previous Topic:Installer custom top level product list?
Next Topic:password validation
Goto Forum:
  


Current Time: Fri Dec 06 18:16:57 GMT 2024

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

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

Back to the top