Task #2725

Change the way the JRE is embedded in TXM

Added by Sebastien Jacquot 3 months ago. Updated 3 months ago.

Status:New Start date:01/17/2020
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Setup Spent time: -
Target version:TXM 0.8.2

Description

Change the way the JRE is embedded in TXM.

Current state

- we use build.properties commands to copy the "jre" directory to the root of the built app
- problems:
- since we use PDE (unique update for TXM root feature) and not Tycho (separated updates for each bundle), the JRE is embedded in all updates
- on Window, P2 can't remove dll, exe that are in use so our updates fail when trying to uninstall the current root feature

Solution 1

- use 3 optional features, 1 for each OS JRE
- use a master feature that drives the native features
- use p2.inf and setJVM instruction to set the launcher JVM path at first install or at a JVM update
- pros:
- improve the management of JRE versions
- should fix the Window update bug
- lighten the updates by not including the JRE in all updates
- improve debug and testing by changing the JRE version

Some docs: https://codeiseasy.wordpress.com/2012/07/31/including-a-jre-in-a-tycho-build/

See: https://github.com/Servoy/servoy-eclipse for a concrete example.

History

#1 Updated by Sebastien Jacquot 3 months ago

  • Description updated (diff)

Also available in: Atom PDF