Skip to content

Commit 08ba178

Browse files
committed
Add target platform files for various uses
2019-12 would normally be our next minimum supported release, but that won't work on M1 Mac.
1 parent 53c1801 commit 08ba178

File tree

6 files changed

+57
-6
lines changed

6 files changed

+57
-6
lines changed

eclipse/org.mybatis.generator.eclipse.doc/html-src/eclipseui/buildingFromSource.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,11 @@ <h2>Eclipse Workspace Setup</h2>
158158
<li>Press "Finish", wait for the workspace to build.</li>
159159
</ol>
160160
</li>
161-
<li>The project includes an Eclipse target platform definition file. The purpose is to set the minimum version
161+
<li>The project includes Eclipse target platform definition files. The purpose is to set the minimum version
162162
of Eclipse supported by the feature and to ensure that you do not inadvertently use Eclipse features from later
163-
versions. The file is <code>releng/target-platform-definition.target</code>. To activate
164-
the target platform, open the file and click on the link that says "Set as active target platform". This action
165-
may take a few minutes to complete.
163+
versions. Target platform files are in the <code>releng</code> project. To activate
164+
the target platform, open the proper target file and click on the link that says "Set as active target platform". This action
165+
may take a few minutes to complete. The README in the releng project contains information about which target platform file to use.
166166
</li>
167167
<li>You will likely have workspace errors due to missing source code in the
168168
<code>org.mybatis.generator.core</code> project. There are two ways to solve this:

eclipse/releng/target-platform-definition.target renamed to eclipse/releng/2018-12.target

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22
<?pde version="3.8"?>
3-
<target includeMode="feature" name="java11Support">
3+
<target includeMode="feature" name="2018-12">
44
<locations>
55
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
66
<repository location="http://download.eclipse.org/releases/2018-12"/>
77
<unit id="org.eclipse.jdt.feature.group" version="3.16.0.v20181206-1038"/>
88
<unit id="org.eclipse.wst.xml_ui.feature.feature.group" version="3.12.0.v201811192212"/>
99
<unit id="org.eclipse.platform.feature.group" version="4.10.0.v20181206-0815"/>
10-
<unit id="org.eclipse.pde.feature.group" version="3.13.300.v20181206-0815"/>
1110
</location>
1211
</locations>
1312
<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>

eclipse/releng/2019-12.target

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<?pde version="3.8"?>
3+
<target includeMode="feature" name="2019-12">
4+
<locations>
5+
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
6+
<repository location="http://download.eclipse.org/releases/2019-12"/>
7+
<unit id="org.eclipse.jdt.feature.group" version="3.18.200.v20191210-0610"/>
8+
<unit id="org.eclipse.wst.xml_ui.feature.feature.group" version="3.16.0.v201911262138"/>
9+
<unit id="org.eclipse.platform.feature.group" version="4.14.0.v20191210-0610"/>
10+
</location>
11+
</locations>
12+
<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
13+
</target>

eclipse/releng/2021-06.target

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<?pde version="3.8"?>
3+
<target includeMode="feature" name="2021-06">
4+
<locations>
5+
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
6+
<repository location="http://download.eclipse.org/releases/2021-06/"/>
7+
<unit id="org.eclipse.jdt.feature.group" version="3.18.800.v20210611-1600"/>
8+
<unit id="org.eclipse.wst.xml_ui.feature.feature.group" version="3.22.0.v202103232331"/>
9+
<unit id="org.eclipse.platform.feature.group" version="4.20.0.v20210611-1600"/>
10+
</location>
11+
</locations>
12+
<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
13+
</target>

eclipse/releng/2021-12.target

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<?pde version="3.8"?>
3+
<target includeMode="feature" name="2021-12">
4+
<locations>
5+
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
6+
<repository location="http://download.eclipse.org/releases/2021-12/"/>
7+
<unit id="org.eclipse.jdt.feature.group" version="3.18.1000.v20211124-1800"/>
8+
<unit id="org.eclipse.wst.xml_ui.feature.feature.group" version="3.24.0.v202111190506"/>
9+
<unit id="org.eclipse.platform.feature.group" version="4.22.0.v20211124-1800"/>
10+
</location>
11+
</locations>
12+
<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
13+
</target>

eclipse/releng/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Release Engineering Support
2+
3+
This project includes target platform definition files for Eclipse to support running and debugging
4+
the feature and plugins in Eclipse. These files are used to make sure we maintain backwards compatibility.
5+
6+
| Target File | Our Plugin Version | Notes |
7+
|-------------|--------------------|--------------------------------------------------------|
8+
| 2018-12 | 1.4.1 | First Eclipse version that supports Java 11 in the AST |
9+
| 2019-12 | 1.4.2? | Normally we would use this version for 1.4.2, but it won't support M1 if we do |
10+
| 2021-06 | 1.4.2? | First Eclipse version that supports M1 Mac |
11+
| 2021-12 | 1.4.2? | First Eclipse version that supports Java 17 in the AST |
12+
13+
Find p2 Repository sites for the various releases here: https://wiki.eclipse.org/Simultaneous_Release

0 commit comments

Comments
 (0)