Hallo,
for a client I developed an Eclipse
Launcher that replaces the original one. To use the customer
launcher I set the new launcher in the p2.inf as follows.
instructions.unconfigure=\
org.eclipse.equinox.p2.touchpoint.eclipse.removeProgramArg(programArg:-startup);\
org.eclipse.equinox.p2.touchpoint.eclipse.removeProgramArg(programArg:plugins${#47}org.eclipse.equinox.launcher_1.5.800.v20200727-1323.jar);
instructions.configure=\
org.eclipse.equinox.p2.touchpoint.eclipse.addProgramArg(programArg:-startup);\
org.eclipse.equinox.p2.touchpoint.eclipse.addProgramArg(programArg:plugins${#47}com.project.launcher_1.0.0.jar);
the result surprises me after all:
config.ini
-startup
plugins/com.product.launcher_1.0.0.jar
-startup
C:\com.customer\products\com.product\target\products\com.initka.nui.development.product\win32\win32\x86_64\plugins\org.eclipse.equinox.launcher_1.5.800.v20200727-1323.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1300.v20200819-0940
Instead of deleting the old launcher
org.eclipse.equinox.launcher_1.5.800.v20200727-1323.jar it is
now generated with an absolute path. Without p2.inf the old
launcher is generated correctly.
-startup
plugins\org.eclipse.equinox.launcher_1.5.800.v20200727-1323.jar
How can I replace the old launcher with the
new one?
Maven 3.6
Tycho 1.7.0 and 2.1.0
Java 11
Many thanks and greetings
Frank