Closed hohwille closed 1 year ago
Currently I get this error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile (default-testCompile) on project tempeng-agnostic: Compilation failure
[ERROR] /D:/projects/devonfw/workspaces/cobigen/cobigen/cobigen-plugins/cobigen-templateengines/cobigen-tempeng-agnostic/src/test/java/x_rootpackage_x/x_component_x/common/X_EntityName_XEto.java:[14,40] annotation @com.devonfw.cobigen.api.annotation.CobiGenDynamicType not applicable in this type context
However, in Eclipse I do not get these errors. Seems that actually we need Java 17 for this feature. Can someone confirm or come with a different explanation?
It seems that I only got this annotation compiler error locally. Even better :)
It would be awesome if someone could give feedback whether my templates structure and config is valid:
And again replaced with new PR #1646
Adresses/Fixes #158 Extends PR #1635
Overview:
Map<String, Object>
construct used in CobiGen before.CobiGenOutput
and extend the parser to allow parsing any file of that language so we finally also replace the mergers with this and solve all from the source-code (that is always the most recent view) rather than on byte-code. Usingmmm-scanner
could improve the parser to give it a lot more accuracy as the inputs could also be ill-formatted...Remaining TODOs:
CobiGen
keyword vs.CobiGen__
keyword) and apply it to the code.CobiGenAgnosticRegistry
and replace withCobiGenGeneratorProvider
incore-api
using service-loader to find generators and provide access.CobiGenOutputFactory
instead of hardcoded hack.CobiGenGeneratorJava*
) to javaplugin that Java templates can use as dependency.context.xml
/templates.xml
Appendable
. BTW: It seems the CobiGen codebase is already full of TODO markers.@devonfw/cobigen