Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Maven: Getting the configured Java source version
Maven: Getting the configured Java source version [message #1810740] Sun, 18 August 2019 21:01
Michael Bischoff is currently offline Michael BischoffFriend
Messages: 19
Registered: August 2012
Junior Member
Hello,
the xtext-maven-plugin logs the configured java version when it starts:
[INFO] Compiler source level: 1.8
[INFO] Compiler target level: 1.8

I would like to obtain the settings of it in a language's doGenerate method.
Is that possible?
I tried to inject xbase's IGeneratorConfigProvider and use its field javaSourceVersion, but that was at its default value JAVA5.

Best regards,
Michael
Previous Topic:Code generation
Next Topic:Save XtextResourceSet
Goto Forum:
  


Current Time: Thu Apr 25 10:49:15 GMT 2024

Powered by FUDForum. Page generated in 0.03088 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top