Skip to content

Commit

Permalink
adapt target platform wizard
Browse files Browse the repository at this point in the history
  • Loading branch information
cdietrich committed Oct 30, 2024
1 parent 5fdf15d commit 33b4a54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ package org.eclipse.xtext.xtext.wizard

import org.eclipse.xtend.lib.annotations.FinalFieldsConstructor
import org.eclipse.xtext.util.JUnitVersion
import org.eclipse.xtext.util.JavaVersion

@FinalFieldsConstructor
class TargetPlatformProject extends ProjectDescriptor {
Expand Down Expand Up @@ -61,11 +60,7 @@ class TargetPlatformProject extends ProjectDescriptor {
<unit id="org.eclipse.pde.feature.group" version="0.0.0"/>
<unit id="org.eclipse.draw2d.feature.group" version="0.0.0"/>
<unit id="org.eclipse.emf.sdk.feature.group" version="0.0.0"/>
«IF config.javaVersion.isAtLeast(JavaVersion.JAVA17
<repository location="https://download.eclipse.org/releases/2024-12"/>
«ELSE»
<repository location="https://download.eclipse.org/releases/2023-03"/>
«ENDIF»
<repository location="https://download.eclipse.org/releases/2024-12"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.emf.mwe2.launcher.feature.group" version="0.0.0"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import org.eclipse.xtend.lib.annotations.FinalFieldsConstructor;
import org.eclipse.xtend2.lib.StringConcatenation;
import org.eclipse.xtext.util.JUnitVersion;
import org.eclipse.xtext.util.JavaVersion;
import org.eclipse.xtext.util.XtextVersion;
import org.eclipse.xtext.xbase.lib.CollectionLiterals;
import org.eclipse.xtext.xbase.lib.ObjectExtensions;
Expand Down Expand Up @@ -108,18 +107,9 @@ public CharSequence target() {
_builder.append("\t\t\t");
_builder.append("<unit id=\"org.eclipse.emf.sdk.feature.group\" version=\"0.0.0\"/>");
_builder.newLine();
{
boolean _isAtLeast = this.getConfig().getJavaVersion().isAtLeast(JavaVersion.JAVA17);
if (_isAtLeast) {
_builder.append("\t\t\t");
_builder.append("<repository location=\"https://download.eclipse.org/releases/2024-12\"/>");
_builder.newLine();
} else {
_builder.append("\t\t\t");
_builder.append("<repository location=\"https://download.eclipse.org/releases/2023-03\"/>");
_builder.newLine();
}
}
_builder.append("\t\t\t");
_builder.append("<repository location=\"https://download.eclipse.org/releases/2024-12\"/>");
_builder.newLine();
_builder.append("\t\t");
_builder.append("</location>");
_builder.newLine();
Expand Down

0 comments on commit 33b4a54

Please sign in to comment.