Project

General

Profile

Bug #2455

[RCP] launcher not working properly

Added by Florian Hölzl almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Urgent
Category:
-
Start date:
12/11/2015
Due date:
% Done:

100%

Estimated time:

History

#1 Updated by Florian Hölzl almost 5 years ago

On MacOSX the launcher does not start the AF3 application.

#2 Updated by Florian Hölzl almost 5 years ago

The reason is that two arguments are missing in the autofocus3.ini file, which is located next to the launcher.

A proper file looks like this:

-startup
../Eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20140116-2212
-showsplash
org.eclipse.platform
-vmargs
-Xdock:icon=../Resources/icon128.icns
-XstartOnFirstThread
-Xms40m
-Xmx256m
-XX:MaxPermSize=256m
-Dorg.eclipse.swt.internal.carbon.smallFonts

However, the file shipped with the nightly product does not contain the "-startup" and "--launcher.library" arguments.
It does so in the Windows and Linux build.

The problem seems to be known and there is a workaround maven plugin: https://github.com/komaz/eclipse-ini-patcher

However, I have currently no clue on how to extend our maven build with this.

#3 Updated by Florian Hölzl almost 5 years ago

  • Status changed from New to In Progress
  • Priority changed from Normal to Urgent
  • % Done changed from 0 to 10

#4 Updated by Florian Hölzl almost 5 years ago

The magic is happening in equinox publisher:
org.eclipse.equinox.p2.publisher.eclipse.EquinoxLauncherCUAction

#5 Updated by Florian Hölzl almost 5 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 10 to 100

A post-processing shell script is now inserting the missing lines in the ini file.
A simple solution, but it works well.

Also available in: Atom PDF