[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tycho-user] How to bundle JRE with a product?
- From: David Robson <David.Robson@xxxxxxxxx>
- Date: Tue, 31 Jul 2012 22:34:04 +0000
- Accept-language: en-AU, en-US
- Delivered-to: email@example.com
- Thread-index: Ac1vI+H8IUEyLEaIRj6UNV2VhCldIwAQGh0AAAGzYzA=
- Thread-topic: [tycho-user] How to bundle JRE with a product?
I am using root files to achieve this. In the feature project I put the JRE in rootfiles/win32/jre using maven-dependency-plugin. I zipped it up and deployed it to the maven repository, then you can use the following to copy it in at build time:
Then in the build.properties add the following line:
root.win32.win32.x86 = rootfiles/win32
And that should be it - the only problem is with the way P2 director works, it also copies a zip file of the JRE in p2/org.eclipse.equinox.p2.core/cache/binary which means your installation has the JRE twice which adds to the download size.
I have logged the following enhancement request to filter this out: https://bugs.eclipse.org/bugs/show_bug.cgi?id=385456
But I have a workaround in the meantime - let me know if you want more details of the workaround.
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Simon Goodall
Sent: Wednesday, 1 August 2012 12:35 AM
To: Tycho user list
Subject: Re: [tycho-user] How to bundle JRE with a product?
There are two ways to handle this with Tycho. The first way is to use root files - although there are problems using this approach if you want to upgrade the jre on window platforms - see .
The alternative is to bundle it with a feature (include the jre folder in build.properties) and use the p2 setJvm touchpoint instruction.
Place something similar to the following in the features' p2.inf file (also p2.inf in build.properties)
This will add the -jvm arg to the generated eclipse.ini (or equivalent). Remember to set the correct platform filters!
On 31 July 2012 14:53, Kopecz, Klaus <klaus.kopecz@xxxxxxx> wrote:
> I would like to bundle the JRE with a product built by tycho-p2-director-plugin's materialize-product goal.
> The PDE product configuration editor offers the flag "Bundle JRE for this environment with the product" which results in a "jre" folder in the PDE product build result. When building the same product with tycho, the jre folder is missing. Is this not supported by tycho or do I need configure additional dependencies?
> tycho-user mailing list
tycho-user mailing list