|Re: prevent compiling in xtext-maven-plugin [message #1753016 is a reply to message #1753014]
||Wed, 01 February 2017 07:33
| chris yo
Registered: February 2013
i managed to make it work. but I encountered another problem.|
My project's flow is this:
-> used by the xtext grammar
-> also does some operations and refers to the methods defined in xtend.
-> transforms and generate the classes
-> calls the op methods in xcore
-> refers to the xtext variables
Thus, xcore depends on the java classes of xtend, and xtend depends on the xtext variables which also depends on the xcore stuffs.
All these are in one project. This is not a problem if build is being handled by Eclipse IDE. But when being run by the maven script in a "clean" environment (no generated sources from xtend yet), this becomes a problem.
So, I was thinking that for XcoreStandaloneSetup, it just simple generates the .java files without checking for the validity. The validity will be checked anyway, when xtend is compiled. I noticed that with Eclipse IDE, only the java files are generated. There are no .class files. But when running maven, .class files are there. Thus, is it possible to skip this part (the .class files) of the xcore compiler?
Powered by FUDForum
. Page generated in 0.02450 seconds