Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] -startup - p2.inf
  • From: "Hoelting, Frank" <fhoelting_extern@xxxxxxxxxx>
  • Date: Thu, 26 Nov 2020 08:21:59 +0000
  • Accept-language: de-DE, en-US
  • Delivered-to: p2-dev@xxxxxxxxxxx
  • Ironport-phdr: 9a23:G5ejQhRb7S5CdG3MMDQi/XbFstpsv+yvbD5Q0YIujvd0So/mwa67ZRKAt8tkgFKBZ4jH8fUM07OQ7/m/HzVduN3Y6SlKWacPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3wOgVvO+v6BJPZgdip2OCu4Z3TZBhDiCagbb9oIxi6sAfcutMLjYZiN6o9xQbFrmZVd+9L2W5mOFWfkgrm6Myt5pBj6SNQu/wg985ET6r3erkzQKJbAjo7LW07/dXnuhbfQwSB4HscSXgWnQFTAwfZ9hH6X4z+vTX8u+FgxSSVJ8z2TbQzWTS/86dmTQLjhSkbOzIl9mzcl9d9h7xHrh2/uxN/wpbUYICLO/p4YqPdZs4RSW5YUspMSyBNHoawYo0SBOQDIOlYtZHwqVsQoxWjGQmiCuDhyjFKiX/3waI13P8sHhva0AA8Bd8CrGjYoMvzOawPUe611q7IzTDbYv9Y2zn975bHchQ9ofGNW7JwftLdwlQvGQPflFqQr4/lMz2I3ekKvWib7+1gWvyri247qgFxpDevyd8yhYjGmoIa1ErE9SNizYY0I924SVJ7YcW6H5dKqy6aMI52T9okTmp1tyk01qcItoSnfCgW1psn3RjfZuSHfoaH7RztW+WcLCtliXxrZr6yiBe//EuuxOD/SMW531hHoytYn9TCqn0D1xLe5tWHRPZj/kqs2TiC2h7N5+9KJ00/iKTVK5kkwrEql5oTt1zOETHql0Xyja+Wbl4k9fay5+TgeLXmqZmRPJJ3hAHmKqkih86yDfoiPgQQQmSX4/mw2KH/8UHjXrlHj+U6nrTbvZzEP8gWqLO1DxVa34o/8RqyCz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.org/mailman/private/p2-dev>
  • List-help: <mailto:p2-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/p2-dev>, <mailto:p2-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/p2-dev>, <mailto:p2-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AdbDphLJ9YI7945XSeiDJtiz3yODJAABR/WAAAgNYkA=
  • Thread-topic: [p2-dev] -startup - p2.inf

Hello Ed,

 

thank you for the info. In the Eclipse IDE PDE Launcher I could already admire the hard represented equinox launcher. And because there is no p2.inf in the org.eclipse.equinox.launcher_1.5.800.v20200727-1323.jar I also suspected that p2 has done a hard representation of the equinox launcher.

 

The alternative would be to start the launcher with java -jar com.customer.launcher_1.0.0.jar. However, the config.ini will then no longer be considered. But the own launcher could read this by itself.

 

Have I still missed something?

 

Many thanks and greetings

Frank

 

Von: p2-dev-bounces@xxxxxxxxxxx <p2-dev-bounces@xxxxxxxxxxx> Im Auftrag von Ed Merks
Gesendet: Donnerstag, 26. November 2020 06:19
An: p2-dev@xxxxxxxxxxx
Betreff: Re: [p2-dev] -startup - p2.inf

 

Frank,

My sense is that these things are hard coded to expect the org.eclipse.equinox.launcher.

https://git.eclipse.org/c/equinox/rt.equinox.p2.git/tree/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/p2/publisher/eclipse/EquinoxLauncherCUAction.java#n91
https://git.eclipse.org/c/equinox/rt.equinox.p2.git/tree/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/p2/publisher/eclipse/ConfigCUsAction.java#n67

All uses of -startup in my SDK workspace look like the following, i.e., with no hard coding of artifact locations:

  addProgramArg(programArg:-startup);addProgramArg(programArg:@artifact);

So I'm doubtful that what you're trying to do is workable.

Regards,
Ed

 

On 26.11.2020 04:44, Hoelting, Frank wrote:

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

 

 



_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/p2-dev

Back to the top