How to prevent a dsl file to be built if it is not in the classpath [message #1849633] |
Thu, 27 January 2022 08:36  |
Eclipse User |
|
|
|
Hello,
I would like that my dsl files which are not on the java classpath to be ignored by the xtext builder for generation/validation.
I tried to use the StrictJavaProjectsState with Domainmodel example.
I added in DomainmodelUiModule
@Override
public Provider<IAllContainersState> provideIAllContainersState()
{
return Access.getStrictJavaProjectsState();
}
Then I created a java project with a test.dmodel in the src folder.
Its content is correctly generated in src-gen folder as expected.
Then I moved test.dmodel in a folder outside the java classpath. I was expecting that the file will be ignored but it is not the case, its content is generated in src-gen folder.
How can I prevent this behaviour ?
Regards,
Yannick
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02966 seconds