|Generated Files do not auto-compile [message #1801618]
||Wed, 23 January 2019 16:09
| Konrad Jünemann
Registered: December 2018
I have two (related) "layered" DSLs, DSL_A and DSL_B. When A files are compiles, B files are generated. Together with other, user-defined B files, they should then be compiles again to generate C-files (simple text files).
I am using the classpath approach proposed in the Xtext book to compile files, i.e., only files on the classpath are deemed visible.
The files are stored as follows:
-> A_files/src/ ... <-- user-defined A-files are stored here
-> B_files/src/ ... <-- user-defined B-files are stored here
-> B_files/src-gen/ ... <-- generated B-files are stored here
-> C_files/ ...
All src and src-gen Folders are configured as source-folders.
My problem is that generated B_files are not parsed automatically after generation, i.e., the EMF Index contains none of the generated B-elements. This problem also occurs after a clean build.
In order to compile the B files a have to remove and add the B_files/src-gen/ folder manually.
How can I ensure that generated B-files are parsed automatically after being generated?
Powered by FUDForum
. Page generated in 0.02231 seconds