Skip to content

Commit

Permalink
Merge pull request #201 from xtext/cd_xtendIssue1301
Browse files Browse the repository at this point in the history
[eclipse/xtext-xtend#1301] fix targetJavaVersion preference
  • Loading branch information
oehme authored Mar 16, 2022
2 parents 27568b7 + 6cf4dc1 commit a038c95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class WhenTheEclipsePluginIsApplied extends AbstractIntegrationTest {
prefs.shouldContain('generateGeneratedAnnotation', false)
prefs.shouldContain('includeDateInGenerated', false)
prefs.shouldContain('useJavaCompilerCompliance', false)
prefs.shouldContain('targetJavaVersion', 'Java6')
prefs.shouldContain('targetJavaVersion', 'JAVA6')
prefs.shouldContain('outlet.DEFAULT_OUTPUT.userOutputPerSourceFolder', true)
prefs.shouldContain('outlet.DEFAULT_OUTPUT.installDslAsPrimarySource', false)
prefs.shouldContain('outlet.DEFAULT_OUTPUT.hideLocalSyntheticVariables', true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class XtextEclipseSettings extends DefaultTask {
if (generatedAnnotation.comment !== null) {
prefs.put("generatedAnnotationComment", generatedAnnotation.comment)
}
prefs.put("targetJavaVersion", "Java" + JavaVersion.toVersion(javaSourceLevel).majorVersion)
prefs.put("targetJavaVersion", "JAVA" + JavaVersion.toVersion(javaSourceLevel).majorVersion)
prefs.putBoolean("useJavaCompilerCompliance", false)
outlets.forEach [ outlet |
addOutletPreferences(prefs, language, outlet)
Expand Down

0 comments on commit a038c95

Please sign in to comment.