[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [tycho-user] How to bundle JRE with a product?
|
- From: Simon Goodall <simon@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 31 Jul 2012 15:34:40 +0100
- Delivered-to: tycho-user@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; bh=er4JVI47MmDP2a4UqvJkU9RgHGvylzfp9HDZIpjCCNE=; b=IVMz7gnZPiKR8mLVyP908Qf5jNV7dLj9eMMpgShcRNzDO0Wt6ZHRqcXYSkDJ1Fb3TS XrWqPJzRUaoY8emNHMDHWZ4hYkWvatgeXDp54+0h1uY6Nhm9k4/V5LGWQ/XRDXynpddR WWo6mPimrbqlGK8eJocSTVJ3ZJb9lC9TolCZgHtK6D2lClOeZQejzBMgVEBTgLfS+9KG 7aj0k1KTRNn8EixW4gUDXKzHxPftpbYld/3Mk+X8XCVpQttfIDytOKEnXd9b3+rgTr0f WofopXQhvObF1A48REsV7dJ02qyno3tX9dVG3YpCHqzPI4ZrzT5FGhXclRNzGoOshasg KHgQ==
Hi Klaus,
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 [1].
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)
instructions.configure=\
org.eclipse.equinox.p2.touchpoint.eclipse.setJvm(jvm:features/feature-name_1.0.0/jre/bin);
instructions.unconfigure=\
org.eclipse.equinox.p2.touchpoint.eclipse.setJvm(jvm:null);
This will add the -jvm arg to the generated eclipse.ini (or
equivalent). Remember to set the correct platform filters!
[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=300812
Simon
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?
> Thanks,
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user