Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » VariableTask / EclipseIniTask gets omitted
VariableTask / EclipseIniTask gets omitted [message #1841725] Wed, 26 May 2021 17:57 Go to next message
Victor Toni is currently offline Victor ToniFriend
Messages: 20
Registered: July 2009
Junior Member
Trying to provide a setup including keystore settings I'm hitting various issues.
To get the basics right I tried to create a minimal working example.

For the keystore configuration I'd like to include two properties: location and password.

Variables screen:
The variable for "useroption.keystore.location" is not shown ("Show all variables" is always checked ). I saw it a few times but now it does not appear anymore.
index.php/fa/40537/0/

Confirmation screen:
Unsurprisingly there is no task to setup the keystore location.
index.php/fa/40538/0/

The setup is Win10 + Oomph 1.21.0 Build 5122 + " -vmargs -Duser.home=Z:\sandbox\USER-HOME -Doomph.setup.user.home.redirect=true" and "USER-HOME" is deleted after stopping the installer.
(the arguments are taken from https://www.eclipse.org/forums/index.php/t/1098807/)

[Updated on: Fri, 28 May 2021 12:40]

Report message to a moderator

Re: VariableTask / EclipseIniTask gets omitted [message #1841733 is a reply to message #1841725] Thu, 27 May 2021 04:57 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33252
Registered: July 2009
Senior Member
The two EclipseIniTasks should look like this
<?xml version="1.0" encoding="UTF-8"?>
<setup:CompoundTask
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    name="Keystore Configuration Options">
  <setupTask
      xsi:type="setup:EclipseIniTask"
      option="-Djavax.net.ssl.keyStore"
      value="=${useroption.keystore.location}"
      vm="true">
    <description>Set the location of the keystore to be used (e.g. for connections using client certificates)</description>
  </setupTask>
  <setupTask
      xsi:type="setup:EclipseIniTask"
      option="-Djavax.net.ssl.keyStorePassword"
      value="=${useroption.keystore.password}"
      vm="true">
    <description>Set the password used to open the keystore</description>
  </setupTask>
</setup:CompoundTask>
This looks identical in the tree view, but during merging, multiple tasks with the same option value are merged into a single task.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: VariableTask / EclipseIniTask gets omitted [message #1841745 is a reply to message #1841733] Thu, 27 May 2021 10:30 Go to previous message
Victor Toni is currently offline Victor ToniFriend
Messages: 20
Registered: July 2009
Junior Member
In the meantime I did some fiddeling and changed my files to something like
  <setupTask
      xsi:type="setup:EclipseIniTask"
      option="-Djavax.net.ssl.keyStore)="
      value="${useroption.keystore.location}"
      vm="true">
    <description>Set the location of the keystore to be used (e.g. for connections using client certificates)</description>
  </setupTask>

and failed to understand why it suddenly seemed to work. Now it's conclusive to me (and BTW after looking at it I like your style better).
I guess due to the merging of the tasks the location variable was not referenced anymore and therefore not shown.

Once again, thanks Ed.
Previous Topic:Is there an Oomph task to perform git pull ?
Next Topic:Evaluation of dynamic filters
Goto Forum:
  


Current Time: Mon Nov 11 16:55:01 GMT 2024

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

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

Back to the top