Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse JustJ » Unnecessary unpacking of platform fragments if not used
Unnecessary unpacking of platform fragments if not used [message #1835854] Tue, 15 December 2020 09:31 Go to next message
Guido Schnepp is currently offline Guido SchneppFriend
Messages: 15
Registered: March 2013
Junior Member
Hi there,

I have a feeling not to be right here, but I have to start to ask somewhere...

I'm creating two products using Tycho 2.1.0 and tycho-p2-director-plugin. Both products are identical except the JustJ feature added to "ProductX" but left out on "ProductX.noJRE". It generates one repository and two product folders as desired. Repository contains the JustJ feature in features/ folder and a fragment plugin in plugins/ folder. So far so good, but...

Generated products have the JustJ feature copied to ProductX/features/ but not copied to ProductX.noJRE/features/, as desired. From here the problems begin:

  1. Both folders, ProductX/plugins and ProductX.noJRE/plugins, get an unpacked version of the fragment plugin (<unpack> is not set in JustJ feature so I assume a 'true' default setting). But why does *.noJRE get the fragment plugin at all, if the feature itself is not included? That's the more interesting question. Is it a problem of the p2-director-plugin to touch features even if they are not contained in the later build?

  2. Both ProductX.ini files now contain a -vm parameter pointing to the unpacked fragment plugin. While this is self-consistent, it doesn't make sense for the noJRE case, right? The ProductX.noJRE build doesn't contain the feature, so shouldn't contain the depending fragment and should not get the -vm option into its INI file. That's how it should look like!

Do you have an opinion on this? Is this a bug to be addressed with the p2-director-plugin or is it a JustJ configuration problem itself? Many thanks in advance.

Regards
Guido

[Updated on: Tue, 15 December 2020 09:31]

Report message to a moderator

Re: Unnecessary unpacking of platform fragments if not used [message #1835855 is a reply to message #1835854] Tue, 15 December 2020 09:55 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Of course the devil is in the details.

For Oomph I build multiple versions of the same product (generating automatically the alternative versions). You can see here how I do that:

https://git.eclipse.org/c/oomph/org.eclipse.oomph.git/tree/products/org.eclipse.oomph.setup.installer.product

You can also see how that build works:

https://ci.eclipse.org/oomph/job/integration/

Also how the two look different product versions look for that build. I.e., one with justj there and one without:

https://ci.eclipse.org/oomph/job/integration/ws/git/products/org.eclipse.oomph.setup.installer.product/target/products/org.eclipse.oomph.setup.installer.product.with-jre/win32/win32/x86_64/
https://ci.eclipse.org/oomph/job/integration/ws/git/products/org.eclipse.oomph.setup.installer.product/target/products/org.eclipse.oomph.setup.installer.product/win32/win32/x86_64/

One possible issue you may encounter is that the JustJ JRE's provide execution environment and Java package capabilities that may cause that JRE to be "required/resolve" without explicitly requiring the actual bundle or feature.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Unnecessary unpacking of platform fragments if not used [message #1836174 is a reply to message #1835855] Wed, 23 December 2020 07:46 Go to previous message
Guido Schnepp is currently offline Guido SchneppFriend
Messages: 15
Registered: March 2013
Junior Member
Ed,

thanks for your reply! Your solution shows that you're building independent product configurations on the fly out of one product file. While this doesn't answer my question, it's a stable workaround.

Having not found another solution the last days I decided to go the same way for now, maybe not that complex: I just moved the second *.product file into a separate new product config (*.product-noJRE vs. *.product) resulting in two independent targets being generated. That way JustJ files are included in the desired target products only.

Thanks again!

Regards
Guido
Previous Topic:[Inquiry] JustJ installation creates new eclipse.ini instead of updating <app>.ini
Next Topic:Using JustJ 11 to build a Java 1.8 based product - Missing p2 iu a.jre.javase 0.0.0
Goto Forum:
  


Current Time: Sat Dec 07 14:55:20 GMT 2024

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

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

Back to the top