-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for including a JRE in the product
PDE recently added a new flag for the product to mark it to include a jre eclipse-pde/eclipse.pde#1075 but this currently has no effect in Tycho. This now adds support for automatically include a JustJ JRE if the option is selected. Fix #2064
- Loading branch information
Showing
16 changed files
with
322 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Tycho JustJ Demo Projects | ||
=================== | ||
|
||
Sample projects demonstrating how to use Tycho with JustJ. | ||
|
||
* `product`: Shows how to manually include JustJ in a product using a dedicated feature | ||
* `automaticInstall`: Shows how to use automatic install with the `includeJRE` option in the product |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>org.eclipse.tycho.demo</groupId> | ||
<artifactId>product-with-justj</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<packaging>eclipse-repository</packaging> | ||
<properties> | ||
<tycho-version>5.0.0-SNAPSHOT</tycho-version> | ||
<target-platform>https://download.eclipse.org/releases/2024-03/</target-platform> | ||
</properties> | ||
<repositories> | ||
<repository> | ||
<id>platform</id> | ||
<url>${target-platform}</url> | ||
<layout>p2</layout> | ||
</repository> | ||
</repositories> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.eclipse.tycho</groupId> | ||
<artifactId>tycho-maven-plugin</artifactId> | ||
<version>${tycho-version}</version> | ||
<extensions>true</extensions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.eclipse.tycho</groupId> | ||
<artifactId>tycho-p2-director-plugin</artifactId> | ||
<version>${tycho-version}</version> | ||
<executions> | ||
<execution> | ||
<id>materialize-products</id> | ||
<goals> | ||
<goal>materialize-products</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<!-- as we are only interested in the product in this demo we disable the assemly and archiving of the repository --> | ||
<plugin> | ||
<groupId>org.eclipse.tycho</groupId> | ||
<artifactId>tycho-p2-repository-plugin</artifactId> | ||
<version>${tycho-version}</version> | ||
<executions> | ||
<execution> | ||
<id>default-assemble-repository</id> | ||
<goals> | ||
<goal>assemble-repository</goal> | ||
</goals> | ||
<phase>none</phase> | ||
</execution> | ||
<execution> | ||
<id>default-archive-repository</id> | ||
<goals> | ||
<goal>archive-repository</goal> | ||
</goals> | ||
<phase>none</phase> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?pde version="3.5"?> | ||
|
||
<product name="A product with justj" uid="product-with-justj-features" id="org.eclipse.platform.ide" application="org.eclipse.ui.ide.workbench" version="0.0.1" type="features" includeLaunchers="true" includeJRE="true" autoIncludeRequirements="true"> | ||
|
||
<configIni> | ||
</configIni> | ||
|
||
<launcherArgs> | ||
</launcherArgs> | ||
|
||
<launcher> | ||
<win useIco="false"> | ||
<bmp/> | ||
</win> | ||
</launcher> | ||
|
||
<vm> | ||
</vm> | ||
|
||
<plugins> | ||
</plugins> | ||
|
||
<features> | ||
<feature id="org.eclipse.platform" installMode="root"/> | ||
</features> | ||
|
||
<configurations> | ||
<plugin id="org.apache.felix.scr" autoStart="true" startLevel="2" /> | ||
<plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="0" /> | ||
<plugin id="org.eclipse.equinox.common" autoStart="true" startLevel="2" /> | ||
<plugin id="org.eclipse.equinox.event" autoStart="true" startLevel="2" /> | ||
<plugin id="org.eclipse.equinox.simpleconfigurator" autoStart="true" startLevel="1" /> | ||
</configurations> | ||
|
||
</product> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.