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: 14
Registered: August 2012
Junior Member
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,
Previous Topic:Code generation
Next Topic:Save XtextResourceSet
Goto Forum:

Current Time: Thu Feb 20 21:23:57 GMT 2020

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

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

Back to the top