Skip to main content



      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 17:01
Eclipse UserFriend
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 Mar 20 05:21:49 EDT 2025

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

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

Back to the top