|How to exclude certain Xtext files from the indexing process [message #1727615]
||Thu, 24 March 2016 13:06
| Jochen Schmich
Registered: July 2009
we're working on a Xtext-based DSL. The DSL source files usually reside in a Source folder.
When a Gradle build is executed, the DSL source files get copied to the "build" folder - thus our DSL files exist twice within the same project.
This means that the contents of both files are indexed. On top of that inferred JvmElements are also indexed.
The most obvious consequence of this is that the duplicates are marked as an Error by the NamesAreUniqueValidator.
Generally speaking, the behavior of Xtext is fully correct in this matter. But still, I want to exclude the "build" folder from the indexing process. I want to achieve that files are not indexed and JVMElements are not inferred (or at least not pushed to the index) if the containing folder is not used as a source folder.
We've partly managed to achieve this by customzing IToBeBuiltComputerContribution. This has no effect on the JVM Inferrer though.
Is there a more elegant and effective solution to this problem?
Thanks in advance,
[Updated on: Thu, 24 March 2016 13:07]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02679 seconds