Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » How to get correct version jre number generated in eclipse.ini
How to get correct version jre number generated in eclipse.ini [message #1805302] Thu, 11 April 2019 11:59
Wilbert Alberts is currently offline Wilbert AlbertsFriend
Messages: 184
Registered: June 2010
Senior Member
Hi,

I'm trying to build an eclipse product using mvn. I followed the instructions mentioned here to get the jvm included as a feature inside the product.

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

Unfortunately, the resulting product contains qualifiers in the version number of enclused features. I don't know how to instruct p2 to use that version number when setting the jvm option in the eclipse.ini.

I'm trying a p2.inf like:

instructions.configure=\
org.eclipse.equinox.p2.touchpoint.eclipse.setJvm(jvm:features/walb.hello.jre/features/walb.hello.jre_${version}/jre/bin);
instructions.unconfigure=\
org.eclipse.equinox.p2.touchpoint.eclipse.setJvm(jvm:null);


Using 'mvn clean package' results in building a product in an eclipse.ini (found in .\jrebug.git\products\walb.hello.product\target\products\walb\win32\win32\x86_64\eclipse.ini) that looks like:
-startup
plugins/org.eclipse.equinox.launcher_1.5.300.v20190213-1655.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1000.v20190125-2016
-vm
features/walb.hello.jre/features/walb.hello.jre_/jre/bin


You see, it misses the version number; something like: walb.hello.jre_1.0.0.201904111153

How can I make sure that it refers to the generated version number?

Greetings,
Wilbert.
Previous Topic:Problems with P2 garbage collector
Goto Forum:
  


Current Time: Tue Jun 18 08:36:08 GMT 2019

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

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

Back to the top