|External dependencies with Xtext builder [message #991648]
||Wed, 19 December 2012 17:58
| Zoltan Ujhelyi
Registered: July 2009
we are developing an Xtext-based language, that refers to a project-specific configuration file, that describe referrable resources. We have a custom scoping implemented, that uses the information during parse and everything works as expected.
However, we noticed that Xtext does not track this dependency information automatically, so changing the file never triggers a rebuild of the dependent files.
I have experimented a lot with various services, but did not find a solution satisfying to us. I am reasonably sure, I did not model everything during scoping as Xtext expects, but I would like to try to solve the issues without breaking our existing implementation too much.
My question is two-folds:
1. Is it possible to provide a service that allows the manual specification of such dependencies - either by rebuilding the entire project if the configuration file changes or by directly connecting the files programmatically.
2. Or if the first solution is not supported and/or is impractical, can you tell me what is the recommended way to specify various extra EMF resource locations to use during scoping.
Thank you for your help,