From a126795f39cd1c0148c552c89455716d25900bbb Mon Sep 17 00:00:00 2001
From: Kai Brassel <mail@khbrassel.de>
Date: Tue, 16 Mar 2021 15:55:17 +0100
Subject: [PATCH] Embed Eclipse JustJ JRE 15.0.2 stripped (without debug info)

---
 de.hftstuttgart.buildingphysics.parent/pom.xml              | 5 +++--
 .../de.hftstuttgart.buildingphysics.application.product     | 4 ++--
 .../buildingphysics.target.target                           | 6 +++++-
 3 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/de.hftstuttgart.buildingphysics.parent/pom.xml b/de.hftstuttgart.buildingphysics.parent/pom.xml
index 4dfe9c0..3dce306 100644
--- a/de.hftstuttgart.buildingphysics.parent/pom.xml
+++ b/de.hftstuttgart.buildingphysics.parent/pom.xml
@@ -39,12 +39,13 @@
 							<version>1.0.0-SNAPSHOT</version>
 						</artifact>
 					</target>
+					<resolveWithExecutionEnvironmentConstraints>false</resolveWithExecutionEnvironmentConstraints>
 					<environments>
 						<!-- environment>
 							<os>linux</os>
 							<ws>gtk</ws>
 							<arch>x86</arch>
-						</environment >
+						</environment-->
 						<environment>
 							<os>linux</os>
 							<ws>gtk</ws>
@@ -54,7 +55,7 @@
 							<os>win32</os>
 							<ws>win32</ws>
 							<arch>x86_64</arch>
-						</environment -->
+						</environment>
 						<environment>
 							<os>macosx</os>
 							<ws>cocoa</ws>
diff --git a/de.hftstuttgart.buildingphysics.product/de.hftstuttgart.buildingphysics.application.product b/de.hftstuttgart.buildingphysics.product/de.hftstuttgart.buildingphysics.application.product
index 02a6048..61fa7c4 100644
--- a/de.hftstuttgart.buildingphysics.product/de.hftstuttgart.buildingphysics.application.product
+++ b/de.hftstuttgart.buildingphysics.product/de.hftstuttgart.buildingphysics.application.product
@@ -22,7 +22,6 @@
    </launcher>
 
    <vm>
-      <macos include="false">org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-14</macos>
    </vm>
 
    <plugins>
@@ -38,11 +37,12 @@
       <feature id="org.eclipse.emf.ecp.view.label.feature" installMode="root"/>
       <feature id="org.eclipse.emf.ecp.view.table.feature" installMode="root"/>
       <feature id="org.eclipse.equinox.sdk" installMode="root"/>
+      <feature id="org.eclipse.justj.openjdk.hotspot.jre.full.stripped" 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.core.runtime" autoStart="true" startLevel="4" />
       <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" />
diff --git a/de.hftstuttgart.buildingphysics.target/buildingphysics.target.target b/de.hftstuttgart.buildingphysics.target/buildingphysics.target.target
index b6ef395..7df2f05 100644
--- a/de.hftstuttgart.buildingphysics.target/buildingphysics.target.target
+++ b/de.hftstuttgart.buildingphysics.target/buildingphysics.target.target
@@ -16,8 +16,12 @@
 			<unit id="de.hft-stuttgart.indriya.feature.feature.group" version="0.0.0"/>
 		</location>
 		<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="false" type="InstallableUnit">
-			<repository location="https://transfer.hft-stuttgart.de/pages/neqmodplus/de.hft-stuttgart.cityunits/release_target_100/"/>
+			<repository location="https://transfer.hft-stuttgart.de/pages/neqmodplus/de.hft-stuttgart.cityunits/release_target_101/"/>
 			<unit id="de.hftstuttgart.cityunits.feature.feature.group" version="0.0.0"/>
 		</location>
+		<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="false" type="InstallableUnit">
+			<repository location="https://download.eclipse.org/justj/jres/15/updates/milestone"/>
+			<unit id="org.eclipse.justj.openjdk.hotspot.jre.full.stripped.feature.group" version="15.0.2.v20210201-0955"/>
+		</location>
 	</locations>
 </target>
\ No newline at end of file
-- 
GitLab