|Prevent XCore to change the .project file. [message #1797332]
||Tue, 30 October 2018 04:22
| Aurélien Mora
Registered: July 2014
I try to use the XCore generated code in a standalone environment, with Java 9 modules.
So far, I'm not able to mix a java 9 nature with a plugin one in the same project, I ran into too much troubles. I still need the Eclipse plugins to provide some editor for my models.
The best solution I found from now is something like this :
Module project, that contains:
- some Java code
- a folder for generated code
Model plugin project, contains:
- xcore files
- an eclipse link to the folder located in the module project
- a specific .project in which I declare the link.
Here a sample code of the link in the .project:
This works pretty good. Bonus point, when I finished to edit my xcores, I can close the model projects to simply work in a J9 module only workspace (because the model code is not in the plugin, but in the module project).
The main issue for now, is that even with the option @GenModel(updateClasspath="false"), the link in the .project could disappear after a clean, or a fresh import of the projects into the workspace.
So my questions :
- Is there a way to prevent EMF/Xcore to change the .project ?
- Maybe you have some idea about a better workflow ?
Powered by FUDForum
. Page generated in 0.03685 seconds